summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Brost2018-04-14 20:12:43 +0200
committerJulian Brost2018-04-14 20:18:28 +0200
commit0b1f71961af7c0675d0dc136d3a1e8a46e1a80ad (patch)
tree94c72c881e06f338ee2faf9380178345b9254334
parentc00a49f0e5510c5faf34edd4d353a558edd3ee65 (diff)
downloadaur-0b1f71961af7c0675d0dc136d3a1e8a46e1a80ad.tar.gz
Enable python2 support
-rw-r--r--PKGBUILD20
1 files changed, 16 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b46928e124e..1650b7f280f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,11 @@
# Maintainer: Roman Voropaev <voropaev.roma@gmail.com>
pkgbase='nginx-unit'
-pkgname=('nginx-unitd' 'nginx-unit-python' 'nginx-unit-php' 'nginx-unit-go')
+pkgname=('nginx-unitd'
+ 'nginx-unit-python'
+ 'nginx-unit-python2'
+ 'nginx-unit-php'
+ 'nginx-unit-go')
_shortname='unit'
pkgver=1.0
pkgrel=0
@@ -13,7 +17,7 @@ source=("https://unit.nginx.org/download/unit-$pkgver.tar.gz"
'unit.service')
sha256sums=('13b250032d3aeef554f5e7f67b26dc2c01b9e51f5f392cbeca44db65488ca6f1'
'SKIP')
-makedepends=('php-embed' 'python' 'go')
+makedepends=('php-embed' 'python' 'python2' 'go')
build() {
cd "$srcdir"/$_shortname-$pkgver
@@ -24,7 +28,8 @@ build() {
--pid="/run/$pkgbase.pid" \
--log="/var/log/$pkgbase.log" \
--control="/run/$pkgbase.control.sock"
- ./configure python
+ ./configure python --config=python3-config
+ ./configure python --config=python2-config
./configure php
./configure go --go-path=/usr/lib/go
make all
@@ -42,7 +47,14 @@ package_nginx-unit-python() {
depends=('nginx-unitd' 'python')
cd "$srcdir"/$_shortname-$pkgver
- make DESTDIR="$pkgdir" python-install
+ make DESTDIR="$pkgdir" python3-install
+}
+
+package_nginx-unit-python2() {
+ depends=('nginx-unitd' 'python2')
+
+ cd "$srcdir"/$_shortname-$pkgver
+ make DESTDIR="$pkgdir" python2-install
}
package_nginx-unit-php() {