updated on Wed Jan 11 08:01:35 UTC 2012
[aur-mirror.git] / ruby-parseconfig / PKGBUILD
blob6f50244d12e359193a32b9b1da19469bdbf842da
1  # Contributor: realitygaps <realitygaps AT yahoo DOT com>
2  pkgname=ruby-parseconfig 
3  pkgver=0.5
4  pkgrel=1
5  pkgdesc="Ruby gem parse config which allows you to easily manage config files"
6  arch=(any)
7  url="http://rubyforge.org/projects/parseconfig/"
8  license=(GPL)
9  depends=(ruby)
10  makedepends=(rubygems)
11  source=(http://gems.rubyforge.org/gems/parseconfig-$pkgver.gem)
12  noextract=(parseconfig-$pkgver.gem)
13  md5sums=('4de10297d1f010c76ff90d28183f9650')
15  build() {
16    cd $srcdir
17    # _gemdir is defined inside build() because if ruby[gems] is not installed on the system
18    #  makepkg will barf when sourcing the PKGBUILD
19    local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
21    gem install --ignore-dependencies -i "$pkgdir$_gemdir" parseconfig-$pkgver.gem
22  }