blob: 568d2dda04d80144c7da59340569437e3f2063d7 (
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: Jakub Jirutka <jakub@jirutka.cz>
_gemname=bundler
pkgname=ruby-$_gemname
pkgver=1.12.4
pkgrel=1
pkgdesc="Manage an application's gem dependencies"
url="http://gembundler.com/"
arch="noarch"
license="MIT"
depends="ruby ruby-io-console"
makedepends=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
builddir="$srcdir"/$_gemname-$pkgver
build() {
return 0
}
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="3fee2a7b2f05f5c2c9611276a34ddacf bundler-1.12.4.gem"
sha256sums="9010e3529ca5a1a5aa62969ae1b6997f485edd35cd0720e64dffad80321718a5 bundler-1.12.4.gem"
sha512sums="60517c92b92be9599ed1955e52fc30c3b626c9b31068e398d04705099c1213baeb4b5d580def0de37c7b8a3483912a2b9ccd060745cc1567659f08121070cdac bundler-1.12.4.gem"
|