aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-06-11 17:26:58 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-06-11 17:26:58 +0200
commitf7cec01da5d9d16b5604c3ddf76e10f56cd50bf6 (patch)
tree1c79f094e0ba9581519e59aec629479440353d31
parentfd962cfa5660c0ed1439ffc121fe5c7628d089ad (diff)
downloadaports-f7cec01da5d9d16b5604c3ddf76e10f56cd50bf6.tar.bz2
aports-f7cec01da5d9d16b5604c3ddf76e10f56cd50bf6.tar.xz
testing/pacparser: add subpackage py-pacparser
-rw-r--r--testing/pacparser/APKBUILD17
1 files changed, 12 insertions, 5 deletions
diff --git a/testing/pacparser/APKBUILD b/testing/pacparser/APKBUILD
index 236f792ee6..49f29a2805 100644
--- a/testing/pacparser/APKBUILD
+++ b/testing/pacparser/APKBUILD
@@ -2,14 +2,14 @@
# Maintainer: Aaron Hurt <ahurt@ena.com>
pkgname=pacparser
pkgver=1.3.6
-pkgrel=1
+pkgrel=2
pkgdesc="A library to parse proxy auto-config (PAC) files"
url="http://pacparser.manugarg.com"
arch="x86 x86_64"
license="LGPL3+"
depends=""
-makedepends="bash"
-subpackages="$pkgname-doc $pkgname-dev"
+makedepends="bash python-dev"
+subpackages="py-$pkgname:pymod $pkgname-doc $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/pacparser/pacparser/archive/$pkgver.tar.gz
spidermonkey-make.patch"
builddir="$srcdir/$pkgname-$pkgver"
@@ -24,12 +24,19 @@ build() {
# There's some concurrency problem, so we must disable parallel build.
# https://github.com/pacparser/pacparser/issues/27
- make -j1 -C src pactester
+ make -j1 -C src pactester pymod
}
package() {
cd "$builddir"
- make -C src DESTDIR=$pkgdir install
+ make -C src DESTDIR="$pkgdir" install
+}
+
+pymod() {
+ depends="python"
+
+ cd "$builddir"
+ make -C src DESTDIR="$subpkgdir" install-pymod
}
md5sums="a7b80fc8b8a4cd8d2060d23eb5f141d2 pacparser-1.3.6.tar.gz