Date: Saturday, December 24, 2016 @ 10:38:42 Author: felixonmars Revision: 201340
archrelease: copy trunk to community-staging-any Added: python-pytz/repos/community-staging-any/ python-pytz/repos/community-staging-any/PKGBUILD (from rev 201339, python-pytz/trunk/PKGBUILD) ----------+ PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) Copied: python-pytz/repos/community-staging-any/PKGBUILD (from rev 201339, python-pytz/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2016-12-24 10:38:42 UTC (rev 201340) @@ -0,0 +1,58 @@ +# Maintainer: Stefan Husmann <stefan-husm...@t-online.de> +# Maintainer: Jelle van der Waa <je...@vdwaa.nl> +# Contributor: Douglas Soares de Andrade <d...@aur.archlinux.org> +# Contributor: William Rea <sillywi...@gmail.com> + +pkgname=('python-pytz' 'python2-pytz') +pkgver=2016.10 +pkgrel=2 +arch=('any') +url="http://pypi.python.org/pypi/pytz" +license=("MIT") +makedepends=('python' 'python2') +source=(https://pypi.python.org/packages/42/00/5c89fc6c9b305df84def61863528e899e9dccb196f8438f6cbe960758fc5/pytz-2016.10.tar.gz{,.asc}) +md5sums=('cc9f16ba436efabdcef3c4d32ae4919c' + 'SKIP') +validpgpkeys=('C7ECC365AB6F255E1EB9BA1701FA998FBAC6374A') + +build(){ + cd $srcdir + cp -rf pytz-$pkgver pytz2-$pkgver +} + +check(){ + cd $srcdir/pytz-$pkgver/pytz/tests + + python3 test_tzinfo.py + + python2 test_tzinfo.py +} + +package_python-pytz(){ + depends=('python') + pkgdesc="Cross platform time zone library for Python" + + cd $srcdir/pytz-$pkgver + + # Fix locale https://github.com/ipython/ipython/issues/2057 + export LC_ALL=en_US.UTF-8 + + python3 setup.py install --root=$pkgdir/ + + install -D LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE +} + + +package_python2-pytz(){ + depends=('python2') + pkgdesc="Cross platform time zone library for Python" + + cd $srcdir/pytz2-$pkgver + + # python 2 fix + sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' pytz/tzfile.py + + python2 setup.py install --root="$pkgdir/" + + install -D LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}