mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-10 14:53:19 +02:00
python-stem: use alternatives
This commit is contained in:
parent
40c490cbd7
commit
4afd31bf87
1 changed files with 3 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-stem'
|
# Template file for 'python-stem'
|
||||||
pkgname=python-stem
|
pkgname=python-stem
|
||||||
version=1.4.1b
|
version=1.4.1b
|
||||||
revision=2
|
revision=3
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc=stem-${version/b/}
|
wrksrc=stem-${version/b/}
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -15,10 +15,7 @@ license="LGPL-3"
|
||||||
homepage="https://stem.torproject.org/"
|
homepage="https://stem.torproject.org/"
|
||||||
distfiles="${PYPI_SITE}/s/stem/stem-${version}.tar.bz2"
|
distfiles="${PYPI_SITE}/s/stem/stem-${version}.tar.bz2"
|
||||||
checksum=475ba00120d571bd959d7ef24e45c4c698bb568c9321043eb7a10c1f6e554325
|
checksum=475ba00120d571bd959d7ef24e45c4c698bb568c9321043eb7a10c1f6e554325
|
||||||
|
alternatives="stem:tor-prompt:/usr/bin/tor-prompt2.7"
|
||||||
post_install() {
|
|
||||||
vbin build-3.4/scripts-3.4/tor-prompt tor-prompt3.4
|
|
||||||
}
|
|
||||||
|
|
||||||
python3.4-stem_package() {
|
python3.4-stem_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
|
@ -26,6 +23,7 @@ python3.4-stem_package() {
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
pycompile_module="stem"
|
pycompile_module="stem"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
|
alternatives="stem:tor-prompt:/usr/bin/tor-prompt3.4"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/tor-prompt3.4
|
vmove usr/bin/tor-prompt3.4
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
|
|
Loading…
Add table
Reference in a new issue