updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ruby1.8-passenger / PKGBUILD
blob6c0d4f14ea80f153a0514be1ca326ec8b314b53e
1 # Contributor: Jacek Roszkowski <j.roszk@gmail.com>
2 pkgname=ruby1.8-passenger
3 pkgver=2.2.10
4 _realname="passenger"
5 pkgrel=1
6 pkgdesc="mod_rails passenger"
7 arch=(any)
8 url="http://www.modrails.com"
9 license=("GPL")
10 depends=('ruby1.8' 'ruby1.8-rake' 'ruby1.8-fastthread' 'boost')
11 source=(http://gems.rubyforge.org/gems/$_realname-$pkgver.gem)
12 noextract=($_realname-$pkgver.gem)
14 build() {
15   cd $srcdir
16   local _gemdir="$(ruby-1.8 -rubygems -e'puts Gem.default_dir')"
17   gem-1.8 install --ignore-dependencies -i "$pkgdir$_gemdir" ${_realname}-$pkgver.gem
18   cd $pkgdir/opt/ruby1.8/lib/ruby/gems/1.8/gems/passenger-2.2.10/ext/nginx
19   /opt/ruby1.8/lib/ruby/gems/1.8/bin/rake nginx || return 1
21 md5sums=('c116ed533ef00eccaffb5a3568cdfd23')