diff options
author | prspkt <prspkt@protonmail.com> | 2019-03-30 00:38:01 +0200 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-03-30 00:38:01 +0200 |
commit | d3b3302a899983223bb225fac1a95cebadcdc35f (patch) | |
tree | 276ece59a172aac65da603b98df4802716c9ddc0 /testing/py3-tzlocal | |
parent | c88da135960cffaa6f9f51e008434cd0e4eba057 (diff) | |
download | aports-d3b3302a899983223bb225fac1a95cebadcdc35f.tar.bz2 aports-d3b3302a899983223bb225fac1a95cebadcdc35f.tar.xz |
testing/py-tzlocal: upgrade to python3
Diffstat (limited to 'testing/py3-tzlocal')
-rw-r--r-- | testing/py3-tzlocal/APKBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/py3-tzlocal/APKBUILD b/testing/py3-tzlocal/APKBUILD new file mode 100644 index 0000000000..05cb32e156 --- /dev/null +++ b/testing/py3-tzlocal/APKBUILD @@ -0,0 +1,28 @@ +# Maintainer: +pkgname=py3-tzlocal +_pkgname=tzlocal +pkgver=1.4 +pkgrel=1 +pkgdesc="Python tzinfo object for the local timezone" +url="http://pytz.sourceforge.net/" +arch="noarch" +license="CC0-1.0" +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" + python3 setup.py build +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="e846f00cb0571da0c891ca8576d614ebfed622431201c713ef38a80fc990fa19298873bad74e5020648ec4b8307ce8362412e0e05d260121e9d70691814a321b tzlocal-1.4.tar.gz" |