diff --git a/srcpkgs/python-wcwidth/template b/srcpkgs/python-wcwidth/template new file mode 100644 index 00000000000..aa6186a4efa --- /dev/null +++ b/srcpkgs/python-wcwidth/template @@ -0,0 +1,31 @@ +# 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 " +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 + } +} diff --git a/srcpkgs/python3-wcwidth b/srcpkgs/python3-wcwidth new file mode 120000 index 00000000000..83fc9e89f4e --- /dev/null +++ b/srcpkgs/python3-wcwidth @@ -0,0 +1 @@ +python-wcwidth \ No newline at end of file