summaryrefslogtreecommitdiff
path: root/community/passenger/PKGBUILD
blob: 8c9684bc3587a5d531ce23d27fa684733500403e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: PKGBUILD 67809 2012-03-14 13:50:13Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=passenger
pkgver=3.0.11
pkgrel=2
_pkgdlnr=75548
pkgdesc="mod_rails passenger"
arch=('i686' 'x86_64')
url="http://www.modrails.com"
license=('GPL')
depends=('apache' 'ruby' 'ruby-rack' 'curl')
install=passenger.install
options=('!emptydirs')
source=(http://rubyforge.org/frs/download.php/${_pkgdlnr}/passenger-$pkgver.tar.gz
	passenger-install-apache2-module.patch)
md5sums=('9186d799e065ccad803cbc0289954f40'
         '3d04eba10c55a955c378678d5df8497f')

build(){
  cd $srcdir/passenger-$pkgver
  patch bin/passenger-install-apache2-module <$srcdir/passenger-install-apache2-module.patch
  ./bin/passenger-install-apache2-module
  rake nginx

  mkdir -p $pkgdir/usr/lib/passenger/
  cp -R * $pkgdir/usr/lib/passenger/

  mkdir -p $pkgdir/usr/lib/httpd/modules
  ln -sf /usr/lib/passenger/ext/apache2/mod_passenger.so $pkgdir/usr/lib/httpd/modules/mod_passenger.so
}