From 8b89aa136ff8d2ebc904f9e3fd72a11847c7a8d9 Mon Sep 17 00:00:00 2001 From: pulux Date: Thu, 2 Feb 2017 21:24:23 +0100 Subject: [PATCH] New package: python-sh-1.12.9 --- srcpkgs/python-sh/template | 31 +++++++++++++++++++++++++++++++ srcpkgs/python3-sh | 1 + 2 files changed, 32 insertions(+) create mode 100644 srcpkgs/python-sh/template create mode 120000 srcpkgs/python3-sh diff --git a/srcpkgs/python-sh/template b/srcpkgs/python-sh/template new file mode 100644 index 00000000000..0dd511b3185 --- /dev/null +++ b/srcpkgs/python-sh/template @@ -0,0 +1,31 @@ +# Template file for 'python-sh' +pkgname=python-sh +version=1.12.9 +revision=1 +wrksrc="${pkgname#*-}-${version}" +noarch=yes +build_style=python-module +pycompile_module="sh.py" +hostmakedepends="python-setuptools python3-setuptools" +depends="python" +short_desc="Python subprocess replacement (Python2)" +maintainer="pulux " +license="MIT" +homepage="https://github.com/amoffat/sh" +distfiles="${PYPI_SITE}/s/sh/sh-${version}.tar.gz" +checksum=579aa19bae7fe86b607df1afaf4e8537c453d2ce3d84e1d3957e099359a51677 + +post_install() { + vlicense LICENSE.txt +} + +python3-sh_package() { + depends="python3" + noarch=yes + pycompile="sh.py" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE.txt + } +} diff --git a/srcpkgs/python3-sh b/srcpkgs/python3-sh new file mode 120000 index 00000000000..13f15f01331 --- /dev/null +++ b/srcpkgs/python3-sh @@ -0,0 +1 @@ +python-sh \ No newline at end of file