summaryrefslogtreecommitdiff
path: root/testing/py3-python-stdnum
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-06-20 10:22:28 +0300
committerprspkt <prspkt@protonmail.com>2019-06-20 10:30:14 +0300
commit164dceb8c2bacc8e2dfeae84b843ca7be88b2dba (patch)
treec5996ada3af1becc618f5ebf7d251379fed8bb58 /testing/py3-python-stdnum
parent02ba4b5ddad70c10069180b4d3c082afc9012648 (diff)
downloadaports-164dceb8c2bacc8e2dfeae84b843ca7be88b2dba.zip
testing/py3-python-stdnum: modernize, use pypi sources
Diffstat (limited to 'testing/py3-python-stdnum')
-rw-r--r--testing/py3-python-stdnum/APKBUILD12
1 files changed, 4 insertions, 8 deletions
diff --git a/testing/py3-python-stdnum/APKBUILD b/testing/py3-python-stdnum/APKBUILD
index 69e153c3489..6a21094bb4b 100644
--- a/testing/py3-python-stdnum/APKBUILD
+++ b/testing/py3-python-stdnum/APKBUILD
@@ -4,28 +4,24 @@ pkgname=py3-python-stdnum
_pkgname=python-stdnum
pkgver=1.5
pkgrel=2
-pkgdesc="A Python module to handle standardized numbers and codes"
-url="http://arthurdejong.org/python-stdnum/"
+pkgdesc="Python module to handle standardized numbers and codes"
+url="https://arthurdejong.org/python-stdnum"
arch="noarch"
license="LGPL-2.0-or-later"
depends="python3"
makedepends="py3-setuptools"
-source="https://arthurdejong.org/python-stdnum/$_pkgname-$pkgver.tar.gz"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-stdnum" # Backwards compatibility
provides="py-stdnum=$pkgver-r$pkkgrel" # Backwards compatibility
build() {
- cd "$builddir"
- python3 setup.py build || return 1
+ python3 setup.py build
}
package() {
- cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-md5sums="a54bbfe0b3029f1a35cb3819e5de88e1 python-stdnum-1.5.tar.gz"
-sha256sums="10fe3db303aec532057484668ca9a4f421c2e5b3b1caee670b26b047bcbc737e python-stdnum-1.5.tar.gz"
sha512sums="8d6394d7039fc5a2e3785eb95ef1793038ae75443224fc5af7f1cae2cb575c2f4e5451bd9668304ba95d3ee3f87dc0103ccf6c35837220f9729cbe1a3e13f656 python-stdnum-1.5.tar.gz"