diff options
author | prspkt <prspkt@protonmail.com> | 2019-03-26 00:21:34 +0200 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-03-26 01:03:15 +0200 |
commit | 907b6fc004a5644141ddd65650cd068359310015 (patch) | |
tree | d569d3d97278099dd7235b5493d29ccb9bcbec73 | |
parent | 3d33d6fe2349564c4476b6fef46eeeee6c470928 (diff) | |
download | aports-907b6fc004a5644141ddd65650cd068359310015.tar.bz2 aports-907b6fc004a5644141ddd65650cd068359310015.tar.xz |
testing/py-pycountry: upgrade to python3
- Add python3 depends.
- Remove py-lxml makedepends due to upstream switching from XML to JSON
formatted databases.
-rw-r--r-- | testing/py3-pycountry/APKBUILD (renamed from testing/py-pycountry/APKBUILD) | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/testing/py-pycountry/APKBUILD b/testing/py3-pycountry/APKBUILD index bdb2cb72bc..393de4662c 100644 --- a/testing/py-pycountry/APKBUILD +++ b/testing/py3-pycountry/APKBUILD @@ -1,6 +1,6 @@ # Contributor: Francesco Colista <francesco.colista@gmail.com> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-pycountry +pkgname=py3-pycountry _pkgname=pycountry pkgver=18.12.8 pkgrel=0 @@ -8,19 +8,21 @@ pkgdesc="ISO country, subdivision, language, currency and script definitions and url="https://pypi.org/project/pycountry" arch="noarch" license="LGPL-2.1-or-later" -depends="" -makedepends="python2-dev py-lxml py-setuptools" +provides="py-pycountry" # for backwards compatibility +replaces="py-pycountry=$pkgver-r$pkgrel" # for backwards compatibility +depends="python3" +makedepends="python3-dev py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" - python2 setup.py build + python3 setup.py build } package() { cd "$builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="9797688ada8ea54c1a56a2cf4d0ad765001816c822c40077953fa71e3af285114c4b5beaf739a24432b9c6ea794952ce347a40ae0bcd9a2c00d12ddc7b45261e pycountry-18.12.8.tar.gz" |