blob: 896ce5aa7a5a7c7878f0ba08c55f32d466db0ce7 (
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
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
_gemname=bundler
pkgname=ruby-$_gemname
pkgver=1.14.6
pkgrel=0
pkgdesc="Manage an application's gem dependencies"
url="https://bundler.io/"
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
}
sha512sums="cf333e266db0690582252a9248f3579a5be9e753c92c0b92e25d4542ddbbc15bfb7e1571fe9886264c0eba22c4510d118192e8f5f50f647b27eea83d68585238 bundler-1.14.6.gem"
|