updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / ruby-ini / PKGBUILD
blob059b8d64bc1df33c2197e1c5a03fcddd87263dca
1 # Contributor: Emiliano Vavassori <syntaxerrormmm@gmail.com>
2 # Maintainer: Emiliano Vavassori <syntaxerrormmm@gmail.com>
3 pkgname=ruby-ini
4 _gemname=ini
5 pkgver=0.1.1
6 pkgrel=3
7 pkgdesc="Makes INI file manipulation as fast, safe, and simple as possible."
8 arch=('any')
9 url="http://rubyforge.org/projects/inifile/"
10 license=('MIT')
11 depends=('ruby>=1.9')
12 makedepends=('rubygems')
13 source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem
14         ini_rb_1.9.patch)
15 noextract=(${_gemname}-${pkgver}.gem)
16 md5sums=('7c18719eb491880911911ced0e6b3912'
17          '8bcccd8257e396f32665ad74e13210ed')
19 package() {
20   cd "${srcdir}"
21   local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
22   
23   gem install --ignore-dependencies -f -i "${pkgdir}${_gemdir}" ${_gemname}-${pkgver}.gem
25   # Fixing a syntax incompatibility with 1.9
26   # See http://rubyforge.org/tracker/index.php?func=detail&aid=27484&group_id=2907&atid=11172
27   cd "${pkgdir}${_gemdir}"
28   patch -p0 -i "${srcdir}/ini_rb_1.9.patch"