1 # Maintainer: Peter Richard Lewis <plewis@aur.archlinux.org>
6 pkgdesc="A tool to get a list of someone's packages from archlinux.org"
8 url="https://rubygems.org/gems/pacmine"
10 depends=('ruby' 'ruby-commander' 'ruby-hpricot')
11 makedepends=(rubygems)
12 source=(http://rubygems.org/downloads/$pkgname-$pkgver.gem)
13 noextract=($pkgname-$pkgver.gem)
14 sha256sums=('fc17f88f6e533d7783fe4375e2f50caaa88998acb5018f1329efc049d4fb6dc0')
18 # _gemdir is defined inside build() because if ruby[gems] is not installed on the system
19 # makepkg will barf when sourcing the PKGBUILD
20 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
22 gem install --ignore-dependencies --verbose -i "$pkgdir$_gemdir" -n "$pkgdir"/usr/bin $pkgname-$pkgver.gem
25 # vim:set ts=2 sw=2 et: