diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-20 10:19:35 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-20 10:29:27 +0300 |
commit | 02ba4b5ddad70c10069180b4d3c082afc9012648 (patch) | |
tree | b6aeae822177e95ad429118c486463cf6bd80559 | |
parent | 8cda77328905b46c0651558b2c2bbe9999148d58 (diff) | |
download | aports-02ba4b5ddad70c10069180b4d3c082afc9012648.tar.bz2 aports-02ba4b5ddad70c10069180b4d3c082afc9012648.tar.xz |
testing/py-stdnum: drop python2
-rw-r--r-- | testing/py3-python-stdnum/APKBUILD (renamed from testing/py-stdnum/APKBUILD) | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/testing/py-stdnum/APKBUILD b/testing/py3-python-stdnum/APKBUILD index 79124d1f1c..69e153c348 100644 --- a/testing/py-stdnum/APKBUILD +++ b/testing/py3-python-stdnum/APKBUILD @@ -1,6 +1,6 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-stdnum +pkgname=py3-python-stdnum _pkgname=python-stdnum pkgver=1.5 pkgrel=2 @@ -8,38 +8,22 @@ pkgdesc="A Python module to handle standardized numbers and codes" url="http://arthurdejong.org/python-stdnum/" arch="noarch" license="LGPL-2.0-or-later" -makedepends="python2-dev py-setuptools python3-dev" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +depends="python3" +makedepends="py3-setuptools" source="https://arthurdejong.org/python-stdnum/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver +replaces="py-stdnum" # Backwards compatibility +provides="py-stdnum=$pkgver-r$pkkgrel" # Backwards compatibility + build() { cd "$builddir" - python2 setup.py build || return 1 python3 setup.py build || return 1 } package() { - mkdir -p "$pkgdir" -} - -_py2() { - replaces="$pkgname" - _py python2 -} - -_py3() { - _py python3 -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $python)" - depends="$python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } md5sums="a54bbfe0b3029f1a35cb3819e5de88e1 python-stdnum-1.5.tar.gz" |