1 # Maintainer: Blaž Tomažič <blaz.tomazic@gmail.com>
2 pkgname=ruby1.8-i18n-v0.4.2
5 pkgdesc="New wave Internationalization support for Ruby."
7 url="http://github.com/svenfuchs/i18n"
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')
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