From dad36fec1bde77520971a3af519279d5a307ce98 Mon Sep 17 00:00:00 2001 From: zlg Date: Wed, 21 Nov 2018 03:20:58 -0800 Subject: user/py3-tz: new package --- user/py3-tz/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 user/py3-tz/APKBUILD (limited to 'user/py3-tz/APKBUILD') diff --git a/user/py3-tz/APKBUILD b/user/py3-tz/APKBUILD new file mode 100644 index 000000000..7d52f8779 --- /dev/null +++ b/user/py3-tz/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Peter Bui +# Contributor: Fabian Affolter +# Maintainer: zlg +pkgname=py3-tz +_pkgname=pytz +pkgver=2018.5 +pkgrel=0 +pkgdesc="A Python definitions of world timezone" +url="http://pytz.sourceforge.net/" +arch="noarch" +license="MIT" +options="!check" # flake8, sphinx +depends="tzdata" +makedepends="python3-dev unzip" +subpackages="" +source="https://pypi.io/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz + zoneinfo-noinstall.patch + zoneinfo-fix.patch" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python3 setup.py build +} + +package() { + mkdir -p "$pkgdir" + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="35b6bdd25b8e57c693da4379c2032401ef3cf290a57d8448c67dcaf1491a21d27ff25d932ef3ec3a51e31fbb7541e081073f292867a7d1ad47904b69dc7e4863 pytz-2018.5.tar.gz +be61b829014be0d0d7db0c544481d378a95324c1f5968cbbcd7887c6ee8ce52a0b47ae734e16fc5fb2429d8d49c8ef199b6b3b7194f9e654699bb73ab8f3a10d zoneinfo-noinstall.patch +a09467dbb00c1ab9f7e7527d9b020a6d913b8da2380a5359e782f27ccf9ec4dd4f50bfc92c95dc2e793904242c8139793c15e78e651d2777fb3b3abc48fcd640 zoneinfo-fix.patch" -- cgit v1.2.3-70-g09d2