void-packages/srcpkgs/python-pytz/template
2014-11-10 13:30:24 +01:00

37 lines
919 B
Text

# Template file for 'python-pytz'
pkgname=python-pytz
version=2014.9
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"
pycompile_module="pytz"
short_desc="Python2 timezone library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://pypi.python.org/pypi/pytz/"
license="MIT"
distfiles="${PYPI_SITE}/p/pytz/pytz-${version}.tar.gz"
checksum=c5bcbd11cf9847096ae1eb4e83dde75d10ac62efe6e73c4600f3f980968cdbd2
pre_install() {
sed -i 's,#!/usr/bin/env python,&3.4,' build-3.4/lib/pytz/tzfile.py
}
post_install() {
vlicense LICENSE.txt LICENSE
}
python3.4-pytz_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="pytz"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove /usr/lib/python3.4
vlicense ${wrksrc}/LICENSE.txt LICENSE
}
}