blob: ee33c6981f7af37b5b6f549d6785a1743651b88a (
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
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
_gemname=bundler
pkgname=ruby-$_gemname
pkgver=1.15.2
pkgrel=0
pkgdesc="Manage an application's gem dependencies"
url="https://bundler.io/"
arch="noarch"
license="MIT"
depends="ruby ruby-io-console"
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
gem install --local \
--install-dir "$gemdir" \
--ignore-dependencies \
--no-document \
--verbose \
"$srcdir"/$_gemname-$pkgver.gem
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/
fi
done
}
sha512sums="3c57d8d4c1741f769d5347c284e425d64f5445fed9bb8ed581e38c2a499e8a6989d1a5d949d3d6f884c8f74ebf79c6152208b2b1056546bd5260bdc8c936af4e bundler-1.15.2.gem"
|