desktop/passenger/PKGBUILD
2015-05-10 06:36:40 +00:00

45 lines
1.2 KiB
Bash

pkgname=passenger
pkgver=5.0.7
pkgrel=1
pkgdesc="mod_rails passenger"
arch=('x86_64')
url="http://www.modrails.com"
license=('GPL')
depends=('ruby' 'ruby-rack' 'curl')
makedepends=('apache')
install=passenger.install
options=('!emptydirs')
source=($pkgname-$pkgver.tar.gz::https://github.com/FooBarWidget/passenger/archive/release-$pkgver.tar.gz)
md5sums=('cd6672df24d9a1e5db14148af3b828bd')
prepare() {
cd $srcdir/passenger-release-$pkgver
sed -i '1,1i#include <stdint.h>' \
ext/common/Utils/MD5.cpp \
ext/common/Logging.cpp \
ext/common/Utils/StrIntUtils.cpp \
ext/common/Utils.cpp \
ext/common/ApplicationPool2/AppTypes.cpp \
ext/boost/libs/thread/src/pthread/once.cpp \
ext/boost/libs/thread/src/pthread/once_atomic.cpp \
ext/boost/libs/thread/src/pthread/thread.cpp \
ext/boost/atomic/atomic.hpp
}
build(){
cd $srcdir/passenger-release-$pkgver
./bin/passenger-install-apache2-module -a
rake nginx
}
package() {
cd $srcdir/passenger-release-$pkgver
install -dm755 "$pkgdir/usr/lib/passenger/"
cp -R * $pkgdir/usr/lib/passenger/
install -dm755 "$pkgdir/usr/lib/httpd/modules"
ln -sf "/usr/lib/passenger/libout/apache2/mod_passenger.so" "$pkgdir/usr/lib/httpd/modules/mod_passenger.so"
}