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