python-pytz: update to 2016.4

This commit is contained in:
Alessio Sergi 2016-04-23 23:03:22 +02:00
parent 7c0edc395b
commit 52f53260fc
1 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'python-pytz'
pkgname=python-pytz
version=2016.3
version=2016.4
revision=1
noarch=yes
wrksrc="pytz-${version}"
@ -13,16 +13,13 @@ short_desc="Python2 timezone library"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://pythonhosted.org/pytz/"
license="MIT"
distfiles="${PYPI_SITE}/p/pytz/pytz-${version}.tar.gz"
checksum=3449da19051655d4c0bb5c37191331748bcad15804d81676a88451ef299370a8
distfiles="https://pypi.python.org/packages/f4/7d/7c0c85e9c64a75dde11bc9d3e1adc4e09a42ce7cdb873baffa1598118709/pytz-${version}.tar.bz2"
checksum=ee7c751544e35a7b7fb5e3fb25a49dade37d51e70a93e5107f10575d7102c311
pre_build() {
sed -i '/^#!/d' pytz/tzfile.py
}
post_install() {
# use system tz database
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/pytz/zoneinfo
for pyver in $python_versions; do
rm -rf ${DESTDIR}/usr/lib/python${pyver}/site-packages/pytz/zoneinfo
ln -sf /usr/share/zoneinfo \
${DESTDIR}/usr/lib/python${pyver}/site-packages/pytz/zoneinfo
done