updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ruby1.8-i18n-v0.4.2 / PKGBUILD
blob7e517a3e4eae45195e85d00da47699e0b72cf6bf
1 # Maintainer: Blaž Tomažič <blaz.tomazic@gmail.com>
2 pkgname=ruby1.8-i18n-v0.4.2
3 pkgver=0.4.2
4 pkgrel=2
5 pkgdesc="New wave Internationalization support for Ruby."
6 arch=(any)
7 url="http://github.com/svenfuchs/i18n"
8 license=('MIT')
9 depends=('rubygems1.8' 'ruby1.8')
10 conflicts=('ruby1.8-i18n')
11 provides=('ruby1.8-i18n=0.4.2')
12 source=(http://gems.rubyforge.org/gems/i18n-$pkgver.gem)
13 noextract=(i18n-$pkgver.gem)
14 md5sums=('be9b3a47b16d0bf29256ff55d6babe09')
16 build() {
17   cd $srcdir
18   # _gemdir is defined inside build() because if ruby[gems] is not installed on the system
19   # makepkg will exit with an error when sourcing the PKGBUILD
20   local _gemdir="$(ruby-1.8 -rubygems -e'puts Gem.default_dir')"
22   gem-1.8 install --ignore-dependencies -i "$pkgdir$_gemdir" i18n-$pkgver.gem