desktop/passenger/PKGBUILD

45 lines
1.2 KiB
Bash
Raw Normal View History

2013-05-27 15:44:31 +08:00
pkgname=passenger
2015-05-10 14:36:40 +08:00
pkgver=5.0.7
2013-11-21 16:29:07 +08:00
pkgrel=1
2013-05-27 15:44:31 +08:00
pkgdesc="mod_rails passenger"
2013-11-21 16:29:07 +08:00
arch=('x86_64')
2013-05-27 15:44:31 +08:00
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)
2015-05-10 14:36:40 +08:00
md5sums=('cd6672df24d9a1e5db14148af3b828bd')
2013-05-27 15:44:31 +08:00
2015-05-10 14:36:40 +08:00
prepare() {
2013-05-27 15:44:31 +08:00
cd $srcdir/passenger-release-$pkgver
2015-05-10 14:36:40 +08:00
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
}
2013-05-27 15:44:31 +08:00
2015-05-10 14:36:40 +08:00
build(){
cd $srcdir/passenger-release-$pkgver
2013-05-27 15:44:31 +08:00
./bin/passenger-install-apache2-module -a
rake nginx
}
package() {
cd $srcdir/passenger-release-$pkgver
2013-11-21 16:29:07 +08:00
install -dm755 "$pkgdir/usr/lib/passenger/"
2015-05-10 14:36:40 +08:00
cp -R * $pkgdir/usr/lib/passenger/
2013-05-27 15:44:31 +08:00
2013-11-21 16:29:07 +08:00
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"
2013-05-27 15:44:31 +08:00
}