[arch-commits] Commit in python-geoip/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Thu Jul 24 07:08:32 UTC 2014


    Date: Thursday, July 24, 2014 @ 09:08:32
  Author: fyan
Revision: 217809

upgpkg: python-geoip 1.3.1-1

- new upstream release
- add python 3 counterpart

Modified:
  python-geoip/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++++++++++++-----
 1 file changed, 20 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-07-24 04:06:57 UTC (rev 217808)
+++ PKGBUILD	2014-07-24 07:08:32 UTC (rev 217809)
@@ -2,27 +2,42 @@
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 # Contributor: Angel Velasquez <angvp at 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
 }
 




More information about the arch-commits mailing list