From 4afd31bf871746a1dc4258bd670a323a36c46960 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 1 May 2016 01:53:48 +0200 Subject: [PATCH] python-stem: use alternatives --- srcpkgs/python-stem/template | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/srcpkgs/python-stem/template b/srcpkgs/python-stem/template index 9f4b75ef86..7dea1b38b2 100644 --- a/srcpkgs/python-stem/template +++ b/srcpkgs/python-stem/template @@ -1,7 +1,7 @@ # Template file for 'python-stem' pkgname=python-stem version=1.4.1b -revision=2 +revision=3 noarch=yes wrksrc=stem-${version/b/} build_style=python-module @@ -15,10 +15,7 @@ license="LGPL-3" homepage="https://stem.torproject.org/" distfiles="${PYPI_SITE}/s/stem/stem-${version}.tar.bz2" checksum=475ba00120d571bd959d7ef24e45c4c698bb568c9321043eb7a10c1f6e554325 - -post_install() { - vbin build-3.4/scripts-3.4/tor-prompt tor-prompt3.4 -} +alternatives="stem:tor-prompt:/usr/bin/tor-prompt2.7" python3.4-stem_package() { noarch=yes @@ -26,6 +23,7 @@ python3.4-stem_package() { pycompile_version="3.4" pycompile_module="stem" short_desc="${short_desc/Python2/Python3.4}" + alternatives="stem:tor-prompt:/usr/bin/tor-prompt3.4" pkg_install() { vmove usr/bin/tor-prompt3.4 vmove usr/lib/python3.4