# Maintainer: Jakub Jirutka _gemname=bundler pkgname=ruby-$_gemname pkgver=1.14.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="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="dd019ccd9357eac1d1989bc98e2a8a12b2952fc2b74b6b8e9c1f63fef7990018c877508fcfc2aa0ec45f537d82343feafcc5a93fd1676330348c2f83f51e04b0 bundler-1.14.4.gem"