aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-03-30 00:38:01 +0200
committerprspkt <prspkt@protonmail.com>2019-03-30 00:38:01 +0200
commitd3b3302a899983223bb225fac1a95cebadcdc35f (patch)
tree276ece59a172aac65da603b98df4802716c9ddc0 /testing
parentc88da135960cffaa6f9f51e008434cd0e4eba057 (diff)
downloadaports-d3b3302a899983223bb225fac1a95cebadcdc35f.tar.bz2
aports-d3b3302a899983223bb225fac1a95cebadcdc35f.tar.xz
testing/py-tzlocal: upgrade to python3
Diffstat (limited to 'testing')
-rw-r--r--testing/py3-tzlocal/APKBUILD (renamed from testing/py-tzlocal/APKBUILD)12
1 files changed, 7 insertions, 5 deletions
diff --git a/testing/py-tzlocal/APKBUILD b/testing/py3-tzlocal/APKBUILD
index 931aeb6758..05cb32e156 100644
--- a/testing/py-tzlocal/APKBUILD
+++ b/testing/py3-tzlocal/APKBUILD
@@ -1,5 +1,5 @@
# Maintainer:
-pkgname=py-tzlocal
+pkgname=py3-tzlocal
_pkgname=tzlocal
pkgver=1.4
pkgrel=1
@@ -7,20 +7,22 @@ pkgdesc="Python tzinfo object for the local timezone"
url="http://pytz.sourceforge.net/"
arch="noarch"
license="CC0-1.0"
-depends="python2 py-tz"
-makedepends="python2-dev py-setuptools"
+provides="py-tzlocal" # for backwards compatibility
+provides="py-tzlocal=$pkgver-r$pkgrel" # for backwards compatibility
+depends="python3 py3-tz"
+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="e846f00cb0571da0c891ca8576d614ebfed622431201c713ef38a80fc990fa19298873bad74e5020648ec4b8307ce8362412e0e05d260121e9d70691814a321b tzlocal-1.4.tar.gz"