python-gntp: use alternatives
This commit is contained in:
parent
7b78b10f58
commit
27de4b8ee6
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'python-gntp'
|
||||
pkgname=python-gntp
|
||||
version=1.0.3
|
||||
revision=1
|
||||
revision=2
|
||||
noarch=yes
|
||||
wrksrc="gntp-${version}"
|
||||
build_style=python-module
|
||||
|
@ -15,9 +15,9 @@ 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.7"
|
||||
|
||||
post_install() {
|
||||
vbin build-3.4/scripts-3.4/gntp gntp3.4
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
||||
|
@ -27,6 +27,7 @@ python3.4-gntp_package() {
|
|||
pycompile_version="3.4"
|
||||
pycompile_module="gntp"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
alternatives="gntp:gntp:/usr/bin/gntp3.4"
|
||||
pkg_install() {
|
||||
vmove usr/bin/gntp3.4
|
||||
vmove usr/lib/python3.4
|
||||
|
|
Loading…
Reference in a new issue