40 lines
1.0 KiB
Bash
40 lines
1.0 KiB
Bash
# Template file for 'python-pytz'
|
|
pkgname=python-pytz
|
|
version=2016.6
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="pytz-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python tzdata"
|
|
pycompile_module="pytz"
|
|
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.bz2"
|
|
checksum=1ce2d13b6503a7260c950a25fa6d26ba8d4da1a7077e062aa9e82c74949aaf4b
|
|
|
|
post_install() {
|
|
# use system tz database
|
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/pytz/zoneinfo
|
|
for pyver in $python_versions; do
|
|
ln -sf /usr/share/zoneinfo \
|
|
${DESTDIR}/usr/lib/python${pyver}/site-packages/pytz/zoneinfo
|
|
done
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3.4-pytz_package() {
|
|
noarch=yes
|
|
depends="python3.4 tzdata"
|
|
pycompile_version="3.4"
|
|
pycompile_module="pytz"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|