diff --git a/srcpkgs/python-pytz/template b/srcpkgs/python-pytz/template index 5c46375ca9e..2a4c846db36 100644 --- a/srcpkgs/python-pytz/template +++ b/srcpkgs/python-pytz/template @@ -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 " 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