1 # Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux AT free DOT fr>
6 pkgdesc="Essential backports that enable some of the really nice features of ruby 1.8.7, ruby 1.9 and rails from ruby 1.8.6 and earlier."
8 url="http://rubygems.org/gems/backports"
11 makedepends=(rubygems)
12 source=(http://rubygems.org/downloads/$_gemname-$pkgver.gem
14 noextract=($_gemname-$pkgver.gem)
15 md5sums=('3ba4343ead748aa305bb402fb9d3ce26'
16 '46d4f8c6df6ebd990ec06c371ceaf731')
20 # _gemdir is defined inside build() because if ruby[gems] is not installed on the system
21 # makepkg will barf when sourcing the PKGBUILD
22 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
24 gem install --ignore-dependencies -i "$pkgdir$_gemdir" $_gemname-$pkgver.gem
28 install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
29 install -m 644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
32 # vim:set ts=2 sw=2 et: