void-packages/srcpkgs/python-colorama/template

32 lines
831 B
Bash

# Template file for 'python-colorama'
pkgname=python-colorama
version=0.3.9
revision=2
noarch=yes
wrksrc=colorama-${version}
build_style="python-module"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="colorama"
short_desc="Cross-platform colored terminal text (Python2)"
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
license="3-clause-BSD"
homepage="https://github.com/tartley/colorama"
distfiles="${PYPI_SITE}/c/colorama/colorama-${version}.tar.gz"
checksum=48eb22f4f8461b1df5734a074b57042430fb06e1d61bd1e11b078c0fe6d7a1f1
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-colorama_package() {
noarch=yes
pycompile_module="colorama"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}