diff options
author | Felix Yan | 2018-07-15 20:06:34 +0800 |
---|---|---|
committer | Felix Yan | 2018-07-15 20:06:34 +0800 |
commit | 576d3bd1e48edf4762f3e92d38fcd5a410dede45 (patch) | |
tree | 512b24bf1bbe800d77ede49354ebbd8e2939ccaa /PKGBUILD | |
download | aur-uwsgi-plugin-php56.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b322bf60602b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com> +# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com> +# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com> +# Contributor: Valentin Hăloiu <vially.ichb+aur@gmail.com> +# Contributor: Angel Velasquez <angvp@archlinux.org> +# Contributor: Kevin Zuber <uKev@knet.eu> +# Contributor: Vsevolod Balashov <vsevolod@balashov.name> +# Contributor: David Runge <dave@sleepmap.de> + +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-} +} |