From 204f6261a6f82c914f83789aee0869c7ee9ffe3b Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 23 Jan 2020 08:40:01 -0500 Subject: [PATCH] py3-iso3166: new aport --- sr.ht/py3-iso3166/APKBUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 sr.ht/py3-iso3166/APKBUILD diff --git a/sr.ht/py3-iso3166/APKBUILD b/sr.ht/py3-iso3166/APKBUILD new file mode 100644 index 0000000..956103b --- /dev/null +++ b/sr.ht/py3-iso3166/APKBUILD @@ -0,0 +1,28 @@ +# Maintainer: Drew DeVault +pkgname=py3-iso3166 +_pyname=iso3166 +pkgver=1.0.1 +pkgrel=0 +pkgdesc="Self-contained ISO 3166-1 country definitions for Python" +url="https://github.com/deactivated/python-iso3166" +arch="noarch" +license="MIT" +depends="python3" +makedepends="py3-setuptools" +_pypiprefix="${_pyname%${_pyname#?}}" +source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" +builddir="$srcdir/$_pyname-$pkgver" + +build() { + python3 setup.py build +} + +check() { + python3 setup.py test +} + +package() { + python3 setup.py install --root="$pkgdir" --optimize=1 +} + +sha512sums="44da1b987f01494fc7874b044fa6b0ed8a888bd159f73ab239f9db35e26c4fd310444164e538166c3804d796c0ab212bb1b1eee02eb3b9b70883d5d2d7ccccc0 iso3166-1.0.1.tar.gz" -- 2.45.2