summaryrefslogtreecommitdiff
path: root/community/passenger/PKGBUILD
blob: 220375dc64bc3d2511b1db2519dc9a46d2ddbd3c (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' 'mips64el')
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
}