aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pacparser/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/pacparser/APKBUILD')
-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