void-packages/srcpkgs/python-colorama/template

32 lines
825 B
Bash

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