# Maintainer: Jakub Jirutka _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"