void-packages/srcpkgs/python-pytz/template

38 lines
920 B
Plaintext
Raw Normal View History

2013-03-06 09:44:18 +01:00
# Template file for 'python-pytz'
pkgname=python-pytz
2014-11-28 08:30:41 +01:00
version=2014.10
2013-03-06 09:44:18 +01:00
revision=1
noarch=yes
2013-03-06 09:44:18 +01:00
wrksrc="pytz-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
2014-09-10 00:45:00 +02:00
depends="python"
pycompile_module="pytz"
short_desc="Python2 timezone library"
2013-03-06 09:44:18 +01:00
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://pypi.python.org/pypi/pytz/"
license="MIT"
2014-11-10 13:29:01 +01:00
distfiles="${PYPI_SITE}/p/pytz/pytz-${version}.tar.gz"
2014-11-28 08:30:41 +01:00
checksum=a94138b638907491f473c875e8c95203a6a02efef52b6562be302e435016f4f3
pre_install() {
sed -i 's,#!/usr/bin/env python,&3.4,' build-3.4/lib/pytz/tzfile.py
}
post_install() {
2014-09-10 00:45:00 +02:00
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
2014-09-10 00:45:00 +02:00
vlicense ${wrksrc}/LICENSE.txt LICENSE
}
}