summaryrefslogtreecommitdiff
path: root/community/adns-python/PKGBUILD
blob: caa37396999ef395a4981250349a87d3d67f3ee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $Id: PKGBUILD 65029 2012-02-20 02:06:35Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Ben Mazer <blm@groknil.org>

pkgname=adns-python
pkgver=1.2.1
pkgrel=5
pkgdesc="python bindings for adns"
arch=('i686' 'x86_64' 'mips64el')
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
}