# Maintainer: Jakub Jirutka _gemname=bundler pkgname=ruby-$_gemname pkgver=2.0.2 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 \ "$gemdir"/gems/$_gemname-$pkgver/*.md } sha512sums="f41fe9e385fbf42859f3514b71abdaa1fd787f4ff4b1169b8ee40ea7778c114657c60ca3d6d6d72fbe972af0558f0cccd9c9f28cad7fc712ada27f037dce8a6a bundler-2.0.2.gem"