diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-07-25 04:03:32 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-07-25 04:03:32 +0000 |
commit | 29cefdccedfcb48822a8da80b259ed0bb0f73266 (patch) | |
tree | eabeaf9a2ee1319f8cc0f3e05018588aa5a169c9 /extra/python-geoip | |
parent | d256eaa80219eb28cbfb4f9474acc6fb41c63d3c (diff) |
Fri Jul 25 03:59:36 UTC 2014
Diffstat (limited to 'extra/python-geoip')
-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 } |