updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ruby1.8-rake / PKGBUILD
blobf0eb79ee6d37b17940abc5d6f9feaecf5f2f84c1
1 # Maintainer: Hilton Medeiros <medeiros.hilton at gmail dot com>
2 # Contributor: Jacek Roszkowski <j.roszk@gmail.com>
4 pkgname=ruby1.8-rake
5 pkgver=0.8.7
6 _realname="rake"
7 pkgrel=3
8 pkgdesc="A simple ruby build program with capabilities similar to make"
9 arch=(any)
10 url="http://rake.rubyforge.org"
11 license=("MIT")
12 depends=('ruby1.8')
13 makedepends=('rubygems1.8')
14 source=(http://gems.rubyforge.org/gems/$_realname-$pkgver.gem)
15 noextract=($_realname-$pkgver.gem)
16 md5sums=('d9eb83525310ad1a0e8a3eeddfe3c65f')
18 build() {
19   cd $srcdir
22 package() {
23   cd $srcdir
24   local _gemdir="$(ruby-1.8 -rubygems -e'puts Gem.default_dir')"
25   gem-1.8 install --ignore-dependencies -i "$pkgdir$_gemdir" ${_realname}-$pkgver.gem
26   install -d $pkgdir/usr/bin
27   ln -s $_gemdir/bin/rake $pkgdir/usr/bin/rake-1.8