summaryrefslogtreecommitdiff
path: root/community/passenger/PKGBUILD
blob: 79448d60529d2aeed5714667eaf92242bca96204 (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
32
# $Id: PKGBUILD 72940 2012-06-25 10:53:59Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=passenger
pkgver=3.0.13
pkgrel=1
_pkgdlnr=76249
pkgdesc="mod_rails passenger"
arch=('i686' 'x86_64')
url="http://www.modrails.com"
license=('GPL')
depends=('ruby' 'ruby-rack' 'curl')
makedepends=('apache')
install=passenger.install
options=('!emptydirs')
source=(http://rubyforge.org/frs/download.php/${_pkgdlnr}/passenger-$pkgver.tar.gz
	build-fix-git-2012-05-17.diff)
md5sums=('1b3a65c77feee86e64891daae66c0c3d'
         'e2d3409bae3676232f411f03abac440c')

build(){
  cd $srcdir/passenger-$pkgver
#  patch -p1 <$srcdir/build-fix-git-2012-05-17.diff
  ./bin/passenger-install-apache2-module -a
  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
}