diff options
author | Peter Bui <pnutzh4x0r@gmail.com> | 2015-08-10 22:00:13 -0500 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-08-12 06:35:25 +0000 |
commit | 5cc885bec446f2a7ad56e9205534a92572aad616 (patch) | |
tree | a3449710b4f76b467817ae80afef61e768487ab2 /testing/py-tzlocal | |
parent | 6bd40508764cb8df442140b45fa08a535dffeee6 (diff) | |
download | aports-5cc885bec446f2a7ad56e9205534a92572aad616.tar.bz2 aports-5cc885bec446f2a7ad56e9205534a92572aad616.tar.xz |
testing/py-tzlocal: new aport
Diffstat (limited to 'testing/py-tzlocal')
-rw-r--r-- | testing/py-tzlocal/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/py-tzlocal/APKBUILD b/testing/py-tzlocal/APKBUILD new file mode 100644 index 0000000000..5ddea8cef9 --- /dev/null +++ b/testing/py-tzlocal/APKBUILD @@ -0,0 +1,40 @@ +# Maintainer: Peter Bui <pnutzh4x0r@gmail.com> +pkgname=py-tzlocal +_pkgname=tzlocal +pkgver=1.2 +pkgrel=0 +pkgdesc="Python tzinfo object for the local timezone" +url="http://pytz.sourceforge.net/" +arch="noarch" +license="CC0 1.0" +depends="python py-tz" +depends_dev="" +makedepends="python-dev py-setuptools" +install="" +subpackages="" +source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="2e36ceb1260bf1233ed2f018a1df536e tzlocal-1.2.tar.gz" +sha256sums="438f122d684c951b22cb98aecc80fdb961b84e69542bf878c6b9a9419de09a8b tzlocal-1.2.tar.gz" +sha512sums="eb4d1f73983579e109249884d2a343c441942fb0d4dc76aed693c4a05100b10a2337d72794fdb9c0cd28c3b73e11dbd030bdf6dc2f75e57c958655219973c814 tzlocal-1.2.tar.gz" |