desktop/passenger/PKGBUILD

43 lines
1.4 KiB
Bash
Raw Normal View History

2013-05-27 15:44:31 +08:00
pkgname=passenger
2016-02-06 07:04:50 +08:00
pkgver=5.0.24
2013-11-21 16:29:07 +08:00
pkgrel=1
pkgdesc="A fast and robust web server and application server for Ruby, Python and Node.js"
2013-11-21 16:29:07 +08:00
arch=('x86_64')
url="https://www.phusionpassenger.com/"
2013-05-27 15:44:31 +08:00
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)
2016-02-06 07:04:50 +08:00
sha256sums=('15061fd0d56ae15d2b2f3a51fa9d59d490d0c13d80ffd5901a7e592222cacf39')
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>' \
src/cxx_supportlib/Logging.cpp \
src/cxx_supportlib/Utils/StrIntUtils.cpp \
src/cxx_supportlib/Utils.cpp \
src/cxx_supportlib/AppTypes.cpp \
src/cxx_supportlib/vendor-modified/boost/libs/thread/src/pthread/once.cpp \
src/cxx_supportlib/vendor-modified/boost/libs/thread/src/pthread/once_atomic.cpp \
src/cxx_supportlib/vendor-modified/boost/libs/thread/src/pthread/thread.cpp \
src/cxx_supportlib/vendor-modified/boost/atomic/atomic.hpp
2015-05-10 14:36:40 +08:00
}
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"
}