Date: Monday, March 4, 2019 @ 18:51:23 Author: grazzolini Revision: 437575
upgpkg: python-pycountry 18.12.8-2 Die python2, die! Modified: python-pycountry/trunk/PKGBUILD ----------+ PKGBUILD | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-03-04 18:25:58 UTC (rev 437574) +++ PKGBUILD 2019-03-04 18:51:23 UTC (rev 437575) @@ -1,51 +1,32 @@ +# Maintainer: Giancarlo Razzolini <[email protected]> # Maintainer: Morten Linderud <[email protected]> # Contibutor: Giovanni Scafora <[email protected]> # Contributor: Pawel "kTT" Salata <[email protected]> -pkgbase=python-pycountry -pkgname=(python-pycountry python2-pycountry) +pkgname=python-pycountry pkgver=18.12.8 -pkgrel=1 +pkgrel=2 pkgdesc="ISO country, subdivision, language, currency and script definitions and their translations" arch=('any') url="https://pypi.org/project/pycountry/" license=('LGPL2.1') -makedepends=('python2' 'python2-setuptools' - 'python' 'python-setuptools') -checkdepends=('python2-pytest' 'python2-pytest-runner' - 'python-pytest' 'python-pytest-runner') +depends=(python python-lxml) +makedepends=('python' 'python-setuptools') +checkdepends=('python-pytest' 'python-pytest-runner') source=("https://pypi.io/packages/source/p/pycountry/pycountry-${pkgver}.tar.gz") sha512sums=('9797688ada8ea54c1a56a2cf4d0ad765001816c822c40077953fa71e3af285114c4b5beaf739a24432b9c6ea794952ce347a40ae0bcd9a2c00d12ddc7b45261e') -prepare(){ - cp -r pycountry-${pkgver}{,-py2} -} - build(){ cd "${srcdir}/pycountry-${pkgver}" python setup.py build - - cd "${srcdir}/pycountry-${pkgver}-py2" - python2 setup.py build } check(){ cd "${srcdir}/pycountry-${pkgver}" python setup.py pytest - - cd "${srcdir}/pycountry-${pkgver}-py2" - python2 setup.py pytest } - -package_python2-pycountry() { - depends=(python python2-lxml) +package() { cd "${srcdir}/pycountry-${pkgver}" - python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build -} - -package_python-pycountry() { - depends=(python python-lxml) - cd "${srcdir}/pycountry-${pkgver}" python setup.py install --root="$pkgdir/" --optimize=1 --skip-build }
