From baab68cbe9c5c75213cde28465d40360536d8795 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Sat, 17 Jun 2023 19:38:39 +0200 Subject: [PATCH] python-pyasn1-modules: split python3-pyasn1-modules --- srcpkgs/python-pyasn1-modules/template | 17 +++-------------- srcpkgs/python3-pyasn1-modules | 1 - srcpkgs/python3-pyasn1-modules/template | 18 ++++++++++++++++++ 3 files changed, 21 insertions(+), 15 deletions(-) delete mode 120000 srcpkgs/python3-pyasn1-modules create mode 100644 srcpkgs/python3-pyasn1-modules/template diff --git a/srcpkgs/python-pyasn1-modules/template b/srcpkgs/python-pyasn1-modules/template index b4de2ca5f5e..fde6b7aa8ae 100644 --- a/srcpkgs/python-pyasn1-modules/template +++ b/srcpkgs/python-pyasn1-modules/template @@ -2,11 +2,11 @@ pkgname=python-pyasn1-modules version=0.2.8 revision=6 -build_style=python-module +build_style=python2-module pycompile_module="pyasn1_modules" -hostmakedepends="python-setuptools python3-setuptools" +hostmakedepends="python-setuptools" depends="python-pyasn1" -checkdepends="python-pyasn1 python3-pyasn1" +checkdepends="python-pyasn1" short_desc="Collection of ASN.1-based protocols modules (Python2)" maintainer="Orphaned " license="BSD-2-Clause" @@ -16,19 +16,8 @@ checksum=c562fcf94e21b19b1b01c103a4dbe24b286356237d2b453afd75882683cf0ad7 do_check() { python setup.py test - python3 setup.py test } post_install() { vlicense LICENSE.txt } - -python3-pyasn1-modules_package() { - depends="python3-pyasn1" - pycompile_module="pyasn1_modules" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense LICENSE.txt - } -} diff --git a/srcpkgs/python3-pyasn1-modules b/srcpkgs/python3-pyasn1-modules deleted file mode 120000 index 582f164b8af..00000000000 --- a/srcpkgs/python3-pyasn1-modules +++ /dev/null @@ -1 +0,0 @@ -python-pyasn1-modules \ No newline at end of file diff --git a/srcpkgs/python3-pyasn1-modules/template b/srcpkgs/python3-pyasn1-modules/template new file mode 100644 index 00000000000..645ef9d4bbe --- /dev/null +++ b/srcpkgs/python3-pyasn1-modules/template @@ -0,0 +1,18 @@ +# Template file for 'python3-pyasn1-modules' +pkgname=python3-pyasn1-modules +version=0.2.8 +revision=6 +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-pyasn1" +checkdepends="python3-pytest ${depends}" +short_desc="Collection of ASN.1-based protocols modules (Python3)" +maintainer="Orphaned " +license="BSD-2-Clause" +homepage="https://github.com/etingof/pyasn1-modules" +distfiles="https://github.com/etingof/pyasn1-modules/archive/v${version}.tar.gz" +checksum=c562fcf94e21b19b1b01c103a4dbe24b286356237d2b453afd75882683cf0ad7 + +post_install() { + vlicense LICENSE.txt +}