# Maintainer: Felix Yan # Contributor: Daniel Wallace # Contributor: Sven-Hendrik Haase # Contributor: Daniel Wallace # Contributor: Valentin Hăloiu # Contributor: Angel Velasquez # Contributor: Kevin Zuber # Contributor: Vsevolod Balashov # Contributor: David Runge pkgname=uwsgi-plugin-php56 pkgdesc="Plugin for PHP 5.6 support" pkgver=2.0.17.1 pkgrel=1 arch=(i686 x86_64) url="http://projects.unbit.it/uwsgi" license=(GPL2) depends=('php56-embed' 'libyaml' 'jansson' 'uwsgi') makedepends=('python2') source=(http://projects.unbit.it/downloads/uwsgi-$pkgver.tar.gz archlinux.ini uwsgi_fix_rpath.patch uwsgi_trick_chroot.patch) md5sums=('0b1d89f62d0a291ba837c57b2f5dae39' '9aced0faffc5fc04afccf946e8a2a886' '1a4516d5cdcf5b95b036f4eae2d0c152' 'a49705b98c28dee890b2f88cbaa58be3') prepare(){ cd $srcdir/uwsgi-$pkgver cp $srcdir/archlinux.ini buildconf/archlinux.ini #sed -i 's/LIBS .*-lphp5.*/LIBS = []/' plugins/php/uwsgiplugin.py for patch in uwsgi_trick_chroot.patch; do patch -Np1 -i $srcdir/$patch done } build() { pushd $srcdir/uwsgi-$pkgver UWSGICONFIG_PHPPATH=/usr/bin/php-config56 python2 uwsgiconfig.py --plugin plugins/php archlinux php56 } package(){ install -dm755 $pkgdir/usr/bin install -Dm755 uwsgi-$pkgver/php56_plugin.so $pkgdir/usr/lib/uwsgi/php56_plugin.so ln -s uwsgi $pkgdir/usr/bin/uwsgi_${pkgname#uwsgi-plugin-} }