From 3fe86eda4e0f906106c97ca6289920faa51816cc Mon Sep 17 00:00:00 2001 From: Pulux Date: Fri, 29 May 2020 19:10:25 +0200 Subject: [PATCH] python-serpent: split package New package: python3-serpent-1.30.2 python2 support only up to version 1.28 --- srcpkgs/python-serpent/template | 18 +++--------------- srcpkgs/python3-serpent | 1 - srcpkgs/python3-serpent/template | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+), 16 deletions(-) delete mode 120000 srcpkgs/python3-serpent create mode 100644 srcpkgs/python3-serpent/template diff --git a/srcpkgs/python-serpent/template b/srcpkgs/python-serpent/template index a40f0d44515..658802bef0d 100644 --- a/srcpkgs/python-serpent/template +++ b/srcpkgs/python-serpent/template @@ -1,12 +1,11 @@ # Template file for 'python-serpent' pkgname=python-serpent version=1.28 -revision=2 +revision=3 archs=noarch wrksrc="${pkgname#*-}-${version}" -build_style=python-module -pycompile_module="serpent.py" -hostmakedepends="python-setuptools python3-setuptools" +build_style=python2-module +hostmakedepends="python-setuptools" depends="python" short_desc="Serialization library based on ast.literal_eval (Python2)" maintainer="pulux " @@ -18,14 +17,3 @@ checksum=f306336ca09aa38e526f3b03cab58eb7e45af09981267233167bcf3bfd6436ab post_install() { vlicense LICENSE } - -python3-serpent_package() { - archs=noarch - depends="python3" - pycompile="serpent.py" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-serpent b/srcpkgs/python3-serpent deleted file mode 120000 index 4e38db55ecb..00000000000 --- a/srcpkgs/python3-serpent +++ /dev/null @@ -1 +0,0 @@ -python-serpent \ No newline at end of file diff --git a/srcpkgs/python3-serpent/template b/srcpkgs/python3-serpent/template new file mode 100644 index 00000000000..ad7a7dc86da --- /dev/null +++ b/srcpkgs/python3-serpent/template @@ -0,0 +1,19 @@ +# Template file for 'python3-serpent' +pkgname=python3-serpent +version=1.30.2 +revision=1 +archs=noarch +wrksrc="${pkgname#*-}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +short_desc="Serialization library based on ast.literal_eval (Python3)" +maintainer="pulux " +license="MIT" +homepage="https://pypi.org/project/serpent/" +distfiles="${PYPI_SITE}/s/serpent/serpent-${version}.tar.gz" +checksum=72753820246a7d8486e8b385353e3bbf769abfceec2e850fa527a288b084ff7a + +post_install() { + vlicense LICENSE +}