From 6e692cb92d206bdfa63f2c8748e652a833dad412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sat, 20 Feb 2021 01:53:34 -0300 Subject: [PATCH] python-gntp: become python3-gntp. Remove python2 version. --- srcpkgs/python-gntp/template | 32 -------------------------------- srcpkgs/python3-gntp | 1 - srcpkgs/python3-gntp/template | 19 +++++++++++++++++++ 3 files changed, 19 insertions(+), 33 deletions(-) delete mode 100644 srcpkgs/python-gntp/template delete mode 120000 srcpkgs/python3-gntp create mode 100644 srcpkgs/python3-gntp/template diff --git a/srcpkgs/python-gntp/template b/srcpkgs/python-gntp/template deleted file mode 100644 index 516246a110..0000000000 --- a/srcpkgs/python-gntp/template +++ /dev/null @@ -1,32 +0,0 @@ -# Template file for 'python-gntp' -pkgname=python-gntp -version=1.0.3 -revision=7 -wrksrc="gntp-${version}" -build_style=python-module -pycompile_module="gntp" -hostmakedepends="python-devel python3-devel" -depends="python" -maintainer="Orphaned " -license="MIT" -homepage="https://github.com/kfdm/gntp" -short_desc="Python2 library for the Growl Notification Transport Protocol" -distfiles="https://github.com/kfdm/gntp/archive/v${version}.tar.gz" -checksum=e9fde29e5ec37dfb77a7659018a7c7f65cb1411054c864eae137ce3d008f794f -alternatives="gntp:gntp:/usr/bin/gntp2" - -post_install() { - vlicense LICENSE -} - -python3-gntp_package() { - depends="python3" - pycompile_module="gntp" - short_desc="${short_desc/Python2/Python3}" - alternatives="gntp:gntp:/usr/bin/gntp3" - pkg_install() { - vmove usr/bin/gntp3 - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-gntp b/srcpkgs/python3-gntp deleted file mode 120000 index 34e4aaa0fa..0000000000 --- a/srcpkgs/python3-gntp +++ /dev/null @@ -1 +0,0 @@ -python-gntp \ No newline at end of file diff --git a/srcpkgs/python3-gntp/template b/srcpkgs/python3-gntp/template new file mode 100644 index 0000000000..db2fa5e0b6 --- /dev/null +++ b/srcpkgs/python3-gntp/template @@ -0,0 +1,19 @@ +# Template file for 'python3-gntp' +pkgname=python3-gntp +version=1.0.3 +revision=8 +wrksrc="gntp-${version}" +build_style=python3-module +hostmakedepends="python3-devel" +depends="python3" +short_desc="Python3 library for the Growl Notification Transport Protocol" +maintainer="Orphaned " +license="MIT" +homepage="https://github.com/kfdm/gntp" +distfiles="https://github.com/kfdm/gntp/archive/v${version}.tar.gz" +checksum=e9fde29e5ec37dfb77a7659018a7c7f65cb1411054c864eae137ce3d008f794f +conflicts="python-gntp>=0" + +post_install() { + vlicense LICENSE +}