diff options
author | prspkt <prspkt@protonmail.com> | 2019-03-25 20:32:55 +0200 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-03-25 20:47:57 +0200 |
commit | 567abdb8c0b5440b9a8d75fb53677ae9ed8f0c06 (patch) | |
tree | 5d76a2c55b5553049b1adbf0f613995b4a033490 /testing | |
parent | 5cb175e7c7cab10f3a3c047730221624d2030122 (diff) | |
download | aports-567abdb8c0b5440b9a8d75fb53677ae9ed8f0c06.tar.bz2 aports-567abdb8c0b5440b9a8d75fb53677ae9ed8f0c06.tar.xz |
testing/py-utc: upgrade to python3
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py3-utc/APKBUILD (renamed from testing/py-utc/APKBUILD) | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/testing/py-utc/APKBUILD b/testing/py3-utc/APKBUILD index 7820de79ec..343e4b9fbe 100644 --- a/testing/py-utc/APKBUILD +++ b/testing/py3-utc/APKBUILD @@ -8,19 +8,21 @@ pkgdesc="A tiny library for working with UTC time" url="https://bitbucket.org/btubbs/utc" arch="noarch" license="MIT" -depends="python2" -makedepends="python2-dev py-setuptools" +provides="py-utc" # for backwards compatibility +replaces="py-utc=$pkgver-r$pkgrel" # for backwards compatibility +depends="python3" +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="efaa3ad007d658b05588eb995f23a5873d3e04f769cae00ca44feb65f29f54340dbe0bf73237c9300fb2cf61274318c77f446301a0fc4ebfeb4a67beeaf9a24b utc-0.0.3.tar.gz" |