void-packages/srcpkgs/python-termcolor/template

35 lines
958 B
Text
Raw Normal View History

2013-06-06 16:58:09 +00:00
# Template file for 'python-termcolor'
pkgname=python-termcolor
version=1.1.0
2014-07-10 08:24:28 +00:00
revision=2
noarch=yes
2013-06-06 16:58:09 +00:00
wrksrc="termcolor-${version}"
build_style=python-module
2014-07-10 08:24:28 +00:00
python_versions="2.7 3.4"
hostmakedepends="python-devel python3.4-devel"
makedepends="${hostmakedepends}"
depends="python"
pycompile_module="termcolor.py"
short_desc="Python2 ANSII Color formatting for output in terminal"
2013-06-06 16:58:09 +00:00
maintainer="Juan RP <xtraeme@gmail.com>"
2014-07-10 08:24:28 +00:00
homepage="https://pypi.python.org/pypi/termcolor"
2013-06-06 16:58:09 +00:00
license="MIT"
2014-07-10 08:24:28 +00:00
distfiles="https://pypi.python.org/packages/source/t/termcolor/termcolor-${version}.tar.gz"
2013-06-06 16:58:09 +00:00
checksum=1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b
2014-07-10 08:24:28 +00:00
post_install() {
vlicense COPYING.txt LICENSE
}
python3.4-termcolor_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="termcolor.py"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
vlicense ${wrksrc}/COPYING.txt LICENSE
}
}