# Maintainer: Jakub Jirutka _gemname=bundler pkgname=ruby-$_gemname pkgver=1.13.2 pkgrel=0 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="66787d94d9573ac9a62eaeda68b95297 bundler-1.13.2.gem" sha256sums="a61f8a57781c01cabe5afa468164aee550b6d0b1238fc073cd7b80601df4fc15 bundler-1.13.2.gem" sha512sums="1c1eecae09b1a481292e2934fe43d9b6f171430e4c2d9169c7d135c455f3e1781ec0a507bd87c56e05978ff2097d571f267fe21b502aaf7fee82f1b7ebdcd09f bundler-1.13.2.gem"