1 # Maintainer: Emmanuel Gras <manu@mindslicer.com>
6 pkgdesc="An interface to the PostgreSQL Relational Database Management System"
8 url="https://bitbucket.org/ged/ruby-pg/wiki/Home"
10 depends=('ruby' 'postgresql-libs')
11 makedepends=(rubygems)
12 source=(http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem)
13 noextract=($_gemname-$pkgver.gem)
14 md5sums=('765209bc586bb02a8814bd4342dd28f9')
18 # _gemdir is defined inside package() because if ruby[gems] is not installed on
19 # the system, makepkg will exit with an error when sourcing the PKGBUILD.
20 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
22 gem install --ignore-dependencies -i "$pkgdir$_gemdir" -n "$pkgdir/usr/bin" \
23 "$_gemname-$pkgver.gem"
26 # vim:set ts=2 sw=2 et: