217e7d31f2
After more than a year the switch to python3 packages, it is time to say them goodbye. So long, and thanks for all the fish.
34 lines
875 B
Bash
34 lines
875 B
Bash
# Template file for 'python-gntp'
|
|
pkgname=python-gntp
|
|
version=1.0.3
|
|
revision=4
|
|
noarch=yes
|
|
wrksrc="gntp-${version}"
|
|
build_style=python-module
|
|
pycompile_module="gntp"
|
|
hostmakedepends="python-devel python3-devel"
|
|
depends="python"
|
|
maintainer="Orphaned <orphan@voidlinux.eu>"
|
|
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() {
|
|
noarch=yes
|
|
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
|
|
}
|
|
}
|