summaryrefslogtreecommitdiff
path: root/community/pacparser
diff options
context:
space:
mode:
Diffstat (limited to 'community/pacparser')
-rw-r--r--community/pacparser/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/pacparser/PKGBUILD b/community/pacparser/PKGBUILD
new file mode 100644
index 000000000..f7c000918
--- /dev/null
+++ b/community/pacparser/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 103445 2014-01-06 02:45:23Z fyan $
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: Max Meyer <dev@fedux.org>
+
+pkgbase=pacparser
+pkgname=('pacparser' 'python2-pacparser')
+pkgver=1.3.1
+pkgrel=1
+arch=(i686 x86_64)
+url="http://pacparser.googlecode.com"
+license=('LGPL')
+makedepends=('python2')
+options=('!makeflags')
+source=("http://pacparser.googlecode.com/files/${pkgbase}-${pkgver}.tar.gz")
+
+build() {
+ cd $pkgbase-$pkgver
+ PYTHON=python2 make all pymod -C src
+}
+
+package_pacparser() {
+ pkgdesc="Library to parse proxy auto-config (PAC) files"
+
+ cd $pkgbase-$pkgver
+ make -C src DESTDIR="$pkgdir/" install
+}
+
+package_python2-pacparser() {
+ depends=('python2')
+ pkgdesc="Python 2.x pacparser module"
+
+ cd $pkgbase-$pkgver
+ PYTHON=python2 make -C src DESTDIR="$pkgdir/" install-pymod
+}
+
+# vim:set ts=2 sw=2 et:
+sha512sums=('20295667d92eb5385429c085c14ca8dc1ba216487ff474304433f99119216934be2dd1647452173418de31f5345679dd7159eafd331e40a2b87564f878d31349')