void-packages/srcpkgs/python-stem/template
Alessio Sergi 169b3a1ae5 python-stem: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-17 12:06:13 +02:00

36 lines
1 KiB
Bash

# Template file for 'python-stem'
pkgname=python-stem
version=1.4.1b
revision=4
noarch=yes
wrksrc=stem-${version/b/}
build_style=python-module
pycompile_module="stem"
hostmakedepends="python-devel python3-devel"
depends="python-crypto"
short_desc="Python2 controller library for Tor"
maintainer="Michael Gehring <mg@ebfe.org>"
license="LGPL-3"
homepage="https://stem.torproject.org/"
distfiles="${PYPI_SITE}/s/stem/stem-${version}.tar.bz2"
checksum=475ba00120d571bd959d7ef24e45c4c698bb568c9321043eb7a10c1f6e554325
alternatives="stem:tor-prompt:/usr/bin/tor-prompt2"
python3-stem_package() {
noarch=yes
depends="python3-crypto"
pycompile_module="stem"
replaces="python3.4-stem>=0"
short_desc="${short_desc/Python2/Python3}"
alternatives="stem:tor-prompt:/usr/bin/tor-prompt3"
pkg_install() {
vmove usr/bin/tor-prompt3
vmove usr/lib/python3*
}
}
python3.4-stem_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-stem>=${version}_${revision}"
}