summaryrefslogtreecommitdiff
path: root/community/adns-python
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/adns-python
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/adns-python')
-rw-r--r--community/adns-python/PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/community/adns-python/PKGBUILD b/community/adns-python/PKGBUILD
new file mode 100644
index 000000000..30dec848a
--- /dev/null
+++ b/community/adns-python/PKGBUILD
@@ -0,0 +1,25 @@
+# $Id: PKGBUILD 26100 2010-09-13 15:56:15Z schuay $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Ben Mazer <blm@groknil.org>
+
+pkgname=adns-python
+pkgver=1.2.1
+pkgrel=4
+pkgdesc="python bindings for adns"
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/adns-python/"
+depends=('adns' 'python2')
+makedepends=()
+license=('GPL2')
+source=(http://adns-python.googlecode.com/files/adns-python-$pkgver.tar.gz)
+md5sums=('12cc7ad1b0ee8d818005e9ca4def758b')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ # python2 fix
+ sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' DNSBL.py
+ sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' ADNS.py
+
+ python2 setup.py install --root=$pkgdir
+}