[arch-commits] Commit in python-pygeoip/repos (2 files)

Felix Yan fyan at archlinux.org
Sat Sep 19 14:49:40 UTC 2015


    Date: Saturday, September 19, 2015 @ 16:49:40
  Author: fyan
Revision: 140884

archrelease: copy trunk to community-staging-any

Added:
  python-pygeoip/repos/community-staging-any/
  python-pygeoip/repos/community-staging-any/PKGBUILD
    (from rev 140883, python-pygeoip/trunk/PKGBUILD)

----------+
 PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

Copied: python-pygeoip/repos/community-staging-any/PKGBUILD (from rev 140883, python-pygeoip/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 14:49:40 UTC (rev 140884)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Emmanuel Gil Peyrot <linkmauve at linkmauve.fr>
+
+pkgbase=python-pygeoip
+pkgname=(python-pygeoip python2-pygeoip)
+_pypiname=pygeoip
+pkgver=0.3.2
+pkgrel=2
+pkgdesc="Pure Python GeoIP API"
+arch=('any')
+url="http://pypi.python.org/pypi/$_pypiname"
+license=('LGPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose')
+optdepends=('geoip-database: provides a database for geoip lookups')
+source=("http://pypi.python.org/packages/source/p/${_pypiname}/${_pypiname}-${pkgver}.tar.gz")
+md5sums=('861664f8be3bed44820356539f2ea5b6')
+
+prepare() {
+  cp -a $_pypiname-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/$_pypiname-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/$_pypiname-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  # Missing data files for running tests
+
+  cd "$srcdir/$_pypiname-$pkgver"
+  #nosetests3
+
+  cd "$srcdir/$_pypiname-$pkgver-py2"
+  #nosetests2
+}
+
+package_python-pygeoip() {
+  depends=('python')
+
+  cd "$srcdir/$_pypiname-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+
+package_python2-pygeoip() {
+  depends=('python2')
+
+  cd "$srcdir/$_pypiname-$pkgver-py2"
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list