diff options
Diffstat (limited to 'extra/python-geoip/PKGBUILD')
-rw-r--r-- | extra/python-geoip/PKGBUILD | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/extra/python-geoip/PKGBUILD b/extra/python-geoip/PKGBUILD index 0b269bbb2..5b43f1181 100644 --- a/extra/python-geoip/PKGBUILD +++ b/extra/python-geoip/PKGBUILD @@ -1,28 +1,43 @@ -# $Id: PKGBUILD 205071 2014-02-04 11:01:58Z jgc $ +# $Id: PKGBUILD 217810 2014-07-24 07:09:06Z fyan $ # Maintainer: Jan de Groot <jgc@archlinux.org> # Contributor: Angel Velasquez <angvp@archlinux.org> -pkgname=('python2-geoip') pkgbase=python-geoip -pkgver=1.2.9 +pkgname=('python-geoip' 'python2-geoip') +pkgver=1.3.1 pkgrel=1 pkgdesc="Python bindings for the GeoIP IP-to-country resolver library" arch=('i686' 'x86_64') url="https://pypi.python.org/pypi/GeoIP/" license=('LGPL') -depends=('python2' 'geoip') +makedepends=('python' 'python2' 'geoip') source=(https://pypi.python.org/packages/source/G/GeoIP/GeoIP-${pkgver}.tar.gz) -md5sums=('367a083a13c442309eeb47fa061bd262') +md5sums=('21fbd501fce9822e0ccc147ab8321f7f') + +prepare() { + cp -a "GeoIP-$pkgver"{,-py2} +} build() { cd "GeoIP-$pkgver" + python setup.py build + + cd "../GeoIP-$pkgver-py2" python2 setup.py build } +package_python-geoip() { + depends=('python' 'geoip') + + cd "GeoIP-$pkgver" + python setup.py install --root="$pkgdir" -O1 +} + package_python2-geoip() { + depends=('python2' 'geoip') conflicts=('python-geoip<1.2.8') - cd "GeoIP-$pkgver" + cd "GeoIP-$pkgver-py2" python2 setup.py install --root="$pkgdir" -O1 } |