# Maintainer: Jakub Jirutka _gemname=bundler pkgname=ruby-$_gemname pkgver=1.17.1 pkgrel=0 pkgdesc="Manage an application's gem dependencies" url="https://bundler.io/" arch="noarch" license="MIT" depends="ruby ruby-etc ruby-io-console" subpackages="$pkgname-doc" source="https://rubygems.org/downloads/$_gemname-$pkgver.gem" builddir="$srcdir/$_gemname-$pkgver" package() { local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')" gem install --local \ --install-dir "$gemdir" \ --bindir "$pkgdir/usr/bin" \ --ignore-dependencies \ --no-document \ --verbose \ "$srcdir"/$_gemname-$pkgver.gem local n; for n in 1 5; do mkdir -p "$pkgdir"/usr/share/man/man$n mv "$gemdir"/gems/$_gemname-$pkgver/man/*.$n "$pkgdir"/usr/share/man/man$n/ done rm -rf "$gemdir"/cache \ "$gemdir"/build_info \ "$gemdir"/doc \ "$gemdir"/gems/$_gemname-$pkgver/man } sha512sums="6adf044096b7716c8b0dae5f559506c65dcb8fd8a8a57428ac25331ca3a85b7cb399fb40b79aeccb0908d172686df9213b86f69286c3e383373ff5ee6f3b414d bundler-1.17.1.gem"