aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-03-26 13:32:20 +0200
committerprspkt <prspkt@protonmail.com>2019-03-26 13:52:05 +0200
commit3dbf99710607f4bc47f11f74d70905ac345a687c (patch)
tree3c68e06ea79549a5fd362187e4e2a04e4fbe6988
parent816753c3c244abe6e38b10b219943e629117d3ea (diff)
downloadaports-3dbf99710607f4bc47f11f74d70905ac345a687c.tar.bz2
aports-3dbf99710607f4bc47f11f74d70905ac345a687c.tar.xz
testing/py-progressbar: upgrade to python3
-rw-r--r--testing/py3-progressbar/APKBUILD (renamed from testing/py-progressbar/APKBUILD)12
1 files changed, 7 insertions, 5 deletions
diff --git a/testing/py-progressbar/APKBUILD b/testing/py3-progressbar/APKBUILD
index e644746813..16d35188b0 100644
--- a/testing/py-progressbar/APKBUILD
+++ b/testing/py3-progressbar/APKBUILD
@@ -1,6 +1,6 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-progressbar
+pkgname=py3-progressbar
_pkgname=progressbar
pkgver=2.3
pkgrel=1
@@ -8,21 +8,23 @@ pkgdesc="Text progress bar library for Python"
url="https://code.google.com/p/python-progressbar/"
arch="noarch"
license="LGPL-2.0-or-later"
-depends="python2"
+provides="py-progressbar" # for backwards compatibility
+replaces="py-progressbar=$pkgver-r$pkgrel" # for backwards compatibility
+depends="python3"
depends_dev=""
-makedepends="python2-dev py-setuptools"
+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="06fdc8b6664642bd864be8023355316fba23bcc4deb0c5877c5dfa91da5d233301a8f39342f133cbb63f37a20de7b8b24910ac8073127fcbdf43b5200d60ed5f progressbar-2.3.tar.gz"