aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-augeas/APKBUILD
blob: 7ec945ccf5bdadb0c81f18a55b5aacaff73a7215 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
_gemname=ruby-augeas
pkgname=$_gemname
pkgver=0.5.0
pkgrel=5
pkgdesc="Augeas bindings for Ruby"
url=http://rubygems.org/gems/$_gemname
arch=all
license="LGPL-2.1-or-later"
depends=ruby
makedepends="augeas-dev ruby-dev"
install=
subpackages=
source=https://rubygems.org/downloads/$_gemname-$pkgver.gem

_builddir=$srcdir/$_realname-$pkgver
build() {
	return 0
}

package() {
	local _gemdir="$(ruby -e 'puts Gem.default_dir')"
	local _geminstdir=$_gemdir/gems/$_gemname-$pkgver
	mkdir -p "$pkgdir" || return 1

	gem install --local --install-dir "$pkgdir"/$_gemdir \
		--ignore-dependencies --verbose --no-rdoc --no-ri \
		"$srcdir"/$_gemname-$pkgver.gem || return 1
	rm -rf "$pkgdir"/$_gemdir/cache \
		"$pkgdir"/$_geminstdir/ext \
		"$pkgdir"/$_geminstdir/.require_paths
}

sha512sums="523742368543c617baa2b393e4682451d7fe20aecbcf9ab50fed0f5575119b3fbc06f79f0894cca728d2fee7d441cdd9f075dbcf81628835ba870930c3d2ac8d  ruby-augeas-0.5.0.gem"