python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / python-pytz / template
blob5b229def066ebf2ef64a4e90035a30281a36c267
1 # Template file for 'python-pytz'
2 pkgname=python-pytz
3 version=2018.4
4 revision=1
5 noarch=yes
6 wrksrc="pytz-${version}"
7 build_style=python-module
8 hostmakedepends="python-setuptools python3-setuptools"
9 depends="python tzdata"
10 pycompile_module="pytz"
11 short_desc="Python2 timezone library"
12 maintainer="Alessio Sergi <al3hex@gmail.com>"
13 homepage="https://pythonhosted.org/pytz/"
14 license="MIT"
15 distfiles="${PYPI_SITE}/p/pytz/pytz-${version}.tar.gz"
16 checksum=c06425302f2cf668f1bba7a0a03f3c1d34d4ebeef2c72003da308b3947c7f749
18 post_install() {
19         # use system tz database
20         for py_sitelib in $py2_sitelib $py3_sitelib; do
21                 rm -rf ${DESTDIR}/${py_sitelib}/pytz/zoneinfo
22                 ln -sf /usr/share/zoneinfo ${DESTDIR}/${py_sitelib}/pytz/zoneinfo
23         done
24         vlicense LICENSE.txt LICENSE
27 python3-pytz_package() {
28         noarch=yes
29         depends="python3 tzdata"
30         pycompile_module="pytz"
31         short_desc="${short_desc/Python2/Python3}"
32         pkg_install() {
33                 vmove usr/lib/python3*
34                 vlicense LICENSE.txt LICENSE
35         }