[arch-commits] Commit in (4 files)
Felix Yan
fyan at nymeria.archlinux.org
Mon Apr 7 13:23:49 UTC 2014
Date: Monday, April 7, 2014 @ 15:23:48
Author: fyan
Revision: 108914
addpkg: python-pygeoip 0.3.1-2
Added:
python-pygeoip/
python-pygeoip/repos/
python-pygeoip/trunk/
python-pygeoip/trunk/PKGBUILD
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Added: python-pygeoip/trunk/PKGBUILD
===================================================================
--- python-pygeoip/trunk/PKGBUILD (rev 0)
+++ python-pygeoip/trunk/PKGBUILD 2014-04-07 13:23:48 UTC (rev 108914)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Emmanuel Gil Peyrot <linkmauve at linkmauve.fr>
+
+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
+}
Property changes on: python-pygeoip/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list