diff --git a/srcpkgs/python-npyscreen/template b/srcpkgs/python-npyscreen/template new file mode 100644 index 00000000000..8eada146a8f --- /dev/null +++ b/srcpkgs/python-npyscreen/template @@ -0,0 +1,31 @@ +# Template file for 'python-npyscreen' +pkgname=python-npyscreen +version=4.10.5.1 +revision=1 +wrksrc="npyscreen-${version}" +build_style=python-module +hostmakedepends="python-setuptools python3-setuptools" +pycompile_module="npyscreen" +depends="python" +short_desc="Python2 widget library and application framework for TUIs" +maintainer="maxice8 " +license="BSD-2-Clause" +homepage="https://github.com/bad-day/npyscreen" +distfiles="https://github.com/bad-day/npyscreen/archive/${version}.tar.gz" +checksum=6703c22d6bad3131b075d7d242c611a3c7ba8eae03f6d3cb414e3d35dae94b29 +noarch=yes + +post_install() { + vlicense LICENCE +} + +python3-npyscreen_package() { + noarch=yes + pycompile_module="npyscreen" + depends="python3" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENCE + } +} diff --git a/srcpkgs/python3-npyscreen b/srcpkgs/python3-npyscreen new file mode 120000 index 00000000000..d55b0594563 --- /dev/null +++ b/srcpkgs/python3-npyscreen @@ -0,0 +1 @@ +python-npyscreen \ No newline at end of file