1 # Contributor: Hilton Medeiros <medeiros.hilton at gmail dot com>
2 # Maintainer: Nicolas Pouillard <nicolas.pouillard at gmail dot com>
4 pkgname=ruby1.8-bundler
8 pkgdesc="A ruby application's dependencies manager."
10 url="http://gembundler.com/"
13 makedepends=('rubygems1.8')
14 source=("http://gems.rubyforge.org/gems/$_pkgname-$pkgver.gem")
15 noextract=($_pkgname-$pkgver.gem)
16 md5sums=('d848cafc6ef572bff6d80b1c98c2f443')
25 # _gemdir is defined inside pkgbuild because if ruby[gems] is not installed on the system
26 # makepkg will exit with an error when sourcing the PKGBUILD
27 local _gemdir="$(ruby-1.8 -rubygems -e'puts Gem.default_dir')"
29 gem-1.8 install --ignore-dependencies -i "$pkgdir$_gemdir" $_pkgname-$pkgver.gem
30 install -d $pkgdir/usr/bin/
31 ln -s $_gemdir/bin/bundle $pkgdir/usr/bin/bundle-1.8