Date: Monday, April 7, 2014 @ 15:24:31
  Author: fyan
Revision: 108915

archrelease: copy trunk to community-any

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

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

Copied: python-pygeoip/repos/community-any/PKGBUILD (from rev 108914, 
python-pygeoip/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD                              (rev 0)
+++ community-any/PKGBUILD      2014-04-07 13:24:31 UTC (rev 108915)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Emmanuel Gil Peyrot <[email protected]>
+
+pkgbase=python-pygeoip
+pkgname=(python-pygeoip python2-pygeoip)
+_pypiname=pygeoip
+pkgver=0.3.1
+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=('f31d44b7dd955f756edda64763c8f069')
+
+prepare() {
+  cp -r $_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
+}

Reply via email to