vp-build/srcpkgs/python-wcwidth/template

32 lines
837 B
Bash

# Template file for 'python-wcwidth'
pkgname=python-wcwidth
version=0.1.7
revision=1
noarch=yes
wrksrc="wcwidth-${version}"
build_style=python-module
pycompile_module="wcwidth"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Measures number of terminal column cells of wide-character codes (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/jquast/wcwidth"
license="MIT"
distfiles="${PYPI_SITE}/w/wcwidth/wcwidth-${version}.tar.gz"
checksum=3df37372226d6e63e1b1e1eda15c594bca98a22d33a23832a90998faa96bc65e
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-wcwidth_package() {
noarch=yes
depends="python3"
pycompile_module="wcwidth"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}