aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-bundler/APKBUILD
blob: e7b2f6df0a87f038513a12068f6e570f8f0ebf66 (plain)
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
36
37
38
39
40
41
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
_gemname=bundler
pkgname=ruby-$_gemname
pkgver=1.13.7
pkgrel=0
pkgdesc="Manage an application's gem dependencies"
url="http://gembundler.com/"
arch="noarch"
license="MIT"
depends="ruby ruby-io-console"
makedepends=""
source="https://rubygems.org/downloads/$_gemname-$pkgver.gem"
builddir="$srcdir/$_gemname-$pkgver"

package() {
	local gemdir="$pkgdir/$(ruby -rubygems -e 'puts Gem.default_dir')"

	mkdir -p "$pkgdir"/usr/bin || return 1

	gem install --local \
		--install-dir "$gemdir" \
		--ignore-dependencies \
		--no-document \
		--verbose \
		"$srcdir"/$_gemname-$pkgver.gem || return 1

	rm -rf "$gemdir"/cache \
		"$gemdir"/build_info \
		"$gemdir"/doc

	cd "$pkgdir"
	local path; for path in usr/lib/ruby/gems/*/bin/*; do
		if [ -f "$path" ]; then
			ln -s /$path "$pkgdir"/usr/bin/ || return 1
		fi
	done
}

md5sums="44569534b9862cc134c8370714333ac8  bundler-1.13.7.gem"
sha256sums="a9f0c8c5cf977cadce77e6185695d4a0b956a73569a5634b15b34cc07fdb7bab  bundler-1.13.7.gem"
sha512sums="8238d3591a3b91d13376b783dc8c7b5b4b0f109b8a7f3798d74f2f69962dcbe69533407355ac6dc6809a9f1c2b2fb9e6fe7055b017328585f9803f20c4d089fd  bundler-1.13.7.gem"