summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 84a59cf579fbab11828e9b8f89dc4995881bcc69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Niels Abspoel <aboe76 (at) Gmail.com>

_gemname=pg
pkgname=ruby-pg
pkgver=0.18.4
pkgrel=1
pkgdesc="Pg is the Ruby interface to the Postgresql RDBMS"
arch=("any")
url="https://bitbucket.org/ged/ruby-pg"
license=("GPL")
depends=("ruby")
makedepends=("rubygems" "postgresql-libs")
conflicts=("")
options=(!emptydirs)
source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
md5sums=('ac35f7c82ca7ca7b8dfd8533a238a83d')
noextract=(${_gemname}-${pkgver}.gem)

package() {
  cd "$srcdir"
  local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"

  gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" \
    -n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem"
  
}