void-packages/srcpkgs/python-curtsies/template

32 lines
906 B
Bash

# Template file for 'python-curtsies'
pkgname=python-curtsies
version=0.2.12
revision=1
noarch=yes
wrksrc="curtsies-${version}"
build_style=python-module
pycompile_module="curtsies"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-blessings>=1.5 python-wcwidth>=0.1.4"
short_desc="Curses-like terminal wrapper, with colored strings (Python2)"
maintainer="Maurizio Porrato <maurizio.porrato@gmail.com>"
homepage="https://github.com/thomasballinger/curtsies"
license="MIT"
distfiles="${PYPI_SITE}/c/curtsies/curtsies-${version}.tar.gz"
checksum=691047d1f8e97daec01866e762706743d0d7461ff69e04acb704dee4b55722cb
post_install() {
vlicense LICENSE
}
python3-curtsies_package() {
noarch=yes
pycompile_module="curtsies"
depends="python3-blessings>=1.5 python3-wcwidth>=0.1.4"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}