[arch-commits] Commit in (3 files)

Antonio Rojas arojas at archlinux.org
Wed Apr 6 06:46:11 UTC 2016


    Date: Wednesday, April 6, 2016 @ 08:46:11
  Author: arojas
Revision: 169554

Update to 1.20, make it a split Py2/Py3 package

Added:
  python-pycountry/
Modified:
  python-pycountry/trunk/PKGBUILD
Deleted:
  python2-pycountry/

----------+
 PKGBUILD |   21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

Modified: python-pycountry/trunk/PKGBUILD
===================================================================
--- python2-pycountry/trunk/PKGBUILD	2016-04-06 06:28:56 UTC (rev 169553)
+++ python-pycountry/trunk/PKGBUILD	2016-04-06 06:46:11 UTC (rev 169554)
@@ -2,20 +2,29 @@
 # Maintainer: Giovanni Scafora <giovanni at archlinux.org>
 # Contributor:  Pawel "kTT" Salata <rockplayer.pl at gmail.com>
 
-pkgname=python2-pycountry
-pkgver=1.18
+pkgbase=python-pycountry
+pkgname=(python-pycountry python2-pycountry)
+pkgver=1.20
 pkgrel=1
 pkgdesc="ISO country, subdivision, language, currency and script definitions and their translations"
 arch=('any')
 url="http://pypi.python.org/pypi/pycountry"
 license=('LGPL2.1')
-depends=('python2-lxml')
-makedepends=('python2-setuptools')
+makedepends=('python2-setuptools' 'python-setuptools')
 source=("http://pypi.python.org/packages/source/p/pycountry/pycountry-${pkgver}.tar.gz")
-md5sums=('652313cef084bf942240ecfe9f88b565')
+md5sums=('efb021c3b42b40c324b80a85714515d6')
 
-package() {
+package_python2-pycountry() {
+  depends=(python2-lxml)
   cd "${srcdir}/pycountry-${pkgver}"
 
   python2 setup.py install --root="$pkgdir/" --optimize=1
 }
+
+package_python-pycountry() {
+  depends=(python-lxml)
+  cd "${srcdir}/pycountry-${pkgver}"
+
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+



More information about the arch-commits mailing list