# Maintainer: Jakub Jirutka _gemname=bundler pkgname=ruby-$_gemname pkgver=1.14.3 pkgrel=0 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 } md5sums="efd787755ea245e5ef2a86409e222834 bundler-1.14.3.gem" sha256sums="9d61c7d983b99eb0b16d64658b182e045bcdd74ef3b139e849777f780782dbfe bundler-1.14.3.gem" sha512sums="71f777bd651fe0f09dc5189bcc93a64c529dc8ff5c17cad78d1dd84b95dd5f86f4dcbab91d10eaa9d99e62a24881da7b39056dcb56910dfb09e37416b255279d bundler-1.14.3.gem"