aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-bundler/APKBUILD
blob: 088f2381182cef6e071d18aa39044e8b7024ba21 (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
42
43
44
45
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=bundler
pkgname=ruby-$_gemname
pkgver=1.10.5
pkgrel=0
pkgdesc="Manage an application's gem dependencies"
url="http://gembundler.com/"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev=
makedepends="$depends_dev"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"

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

package() {
	local _gemdir="$(ruby -rubygems -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
	
	cd "$pkgdir"
	for i in usr/lib/ruby/gems/*/bin/*; do
		if [ -e "$i" ]; then
			mkdir -p "$pkgdir"/usr/bin
			ln -s /$i "$pkgdir"/usr/bin/
		fi
	done
}

md5sums="685dedd2bd253231be12d3a7f45b1c65  bundler-1.10.5.gem"
sha256sums="cc166e24197d772d85a0788d1b2e2a12c0c5748e54c898abd275ad948ce17dfe  bundler-1.10.5.gem"
sha512sums="d347bdb701aa6bc60a26725f7fdfd05f03162610dfb2f648e755a3687795184ccfe5758617a1951365800ea13e1f1018c75bcdf0a4f116223806270676638021  bundler-1.10.5.gem"