blob: 5b694c6c099c740a223c0476c95475e7b0182457 (
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.4
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="ae143f333f832d72d24113e69ccd4ffc bundler-1.13.4.gem"
sha256sums="92729d3460ec5ed9bc8db04145c3f3373e4e8a994ecebc6fe0f5ab2814af9075 bundler-1.13.4.gem"
sha512sums="c85dbf25fbd4162ed425236945570a03c90f3812547caf1b4f7b7e31246c8c15de6f472a48ae4f9ad0503a4c9a6ca65781480b0a141b651f2ab1e27211a3c3a5 bundler-1.13.4.gem"
|