# Template file for 'python-pytz' pkgname=python-pytz version=2017.3 revision=1 noarch=yes wrksrc="pytz-${version}" build_style=python-module hostmakedepends="unzip python-setuptools python3-setuptools" depends="python tzdata" pycompile_module="pytz" short_desc="Python2 timezone library" maintainer="Alessio Sergi " homepage="https://pythonhosted.org/pytz/" license="MIT" distfiles="${PYPI_SITE}/p/pytz/pytz-${version}.zip" checksum=fae4cffc040921b8a2d60c6cf0b5d662c1190fe54d718271db4eb17d44a185b7 post_install() { # use system tz database for py_sitelib in $py2_sitelib $py3_sitelib; do rm -rf ${DESTDIR}/${py_sitelib}/pytz/zoneinfo ln -sf /usr/share/zoneinfo ${DESTDIR}/${py_sitelib}/pytz/zoneinfo done vlicense LICENSE.txt LICENSE } python3-pytz_package() { noarch=yes depends="python3 tzdata" pycompile_module="pytz" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/lib/python3* vlicense LICENSE.txt LICENSE } }