From 27de4b8ee66cd3c636ef1a8ee66e1aff926f3e78 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 1 May 2016 02:03:00 +0200 Subject: [PATCH] python-gntp: use alternatives --- srcpkgs/python-gntp/template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srcpkgs/python-gntp/template b/srcpkgs/python-gntp/template index 777474fdc92..ead06e50f33 100644 --- a/srcpkgs/python-gntp/template +++ b/srcpkgs/python-gntp/template @@ -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