32 lines
841 B
Bash
32 lines
841 B
Bash
# Template file for 'python-wcwidth'
|
|
pkgname=python-wcwidth
|
|
version=0.1.7
|
|
revision=2
|
|
archs=noarch
|
|
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() {
|
|
archs=noarch
|
|
depends="python3"
|
|
pycompile_module="wcwidth"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|