diff --git a/srcpkgs/python-py/template b/srcpkgs/python-py/template new file mode 100644 index 00000000000..fe69832d578 --- /dev/null +++ b/srcpkgs/python-py/template @@ -0,0 +1,29 @@ +# Template file for 'python-py' +pkgname=python-py +version=1.4.34 +revision=1 +wrksrc="${pkgname/python-//}-${version}" +build_style=python-module +pycompile_module="py" +hostmakedepends="python-setuptools python3-setuptools" +short_desc="Python2 development support library" +maintainer="maxice8 " +license="MIT" +homepage="https://github.com/pytest-dev/py" +distfiles="https://github.com/pytest-dev/py/archive/${version}.tar.gz" +checksum=522e37eb34a4decf1cc43f1522d4c18c9a6aa8caaddc401627aba5432ee08970 +noarch=yes + +post_install() { + vlicense LICENSE +} + +python3-py_package() { + noarch=yes + pycompile_module="py" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-py b/srcpkgs/python3-py new file mode 120000 index 00000000000..1a72927b964 --- /dev/null +++ b/srcpkgs/python3-py @@ -0,0 +1 @@ +python-py \ No newline at end of file