36 lines
976 B
Bash
36 lines
976 B
Bash
# Template file for 'python-pytz'
|
|
pkgname=python-pytz
|
|
version=2019.1
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="pytz-${version}"
|
|
build_style=python-module
|
|
pycompile_module="pytz"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python tzdata"
|
|
short_desc="Python2 timezone library"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://pythonhosted.org/pytz/"
|
|
distfiles="${PYPI_SITE}/p/pytz/pytz-${version}.tar.gz"
|
|
checksum=d747dd3d23d77ef44c6a3526e274af6efeb0a6f1afd5a69ba4d5be4098c8e141
|
|
|
|
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() {
|
|
archs=noarch
|
|
depends="python3 tzdata"
|
|
pycompile_module="pytz"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|