void-packages/srcpkgs/python-stem/template

37 lines
1.0 KiB
Bash

# Template file for 'python-stem'
pkgname=python-stem
version=1.5.4
revision=1
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="Orphaned <orphan@voidlinux.eu>"
license="LGPL-3"
homepage="https://stem.torproject.org/"
distfiles="${PYPI_SITE}/s/stem/stem-${version}.tar.gz"
checksum=3649133037ee186e80115650094a2fb2f60a23f006ebddab34d9039be9b2f7c8
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}"
}