python-gntp: become python3-gntp.

Remove python2 version.
This commit is contained in:
Érico Rolim 2021-02-20 01:53:34 -03:00 committed by Érico Nogueira Rolim
parent c6d862090d
commit 6e692cb92d
3 changed files with 19 additions and 33 deletions

View file

@ -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 <orphan@voidlinux.org>"
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
}
}

View file

@ -1 +0,0 @@
python-gntp

View file

@ -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 <orphan@voidlinux.org>"
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
}