void-packages/srcpkgs/python-stem/template

30 lines
826 B
Bash

# Template file for 'python-stem'
pkgname=python-stem
version=1.6.0
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=d7fe1fb13ed5a94d610b5ad77e9f1b3404db0ca0586ded7a34afd323e3b849ed
alternatives="stem:tor-prompt:/usr/bin/tor-prompt2"
python3-stem_package() {
noarch=yes
depends="python3-crypto"
pycompile_module="stem"
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*
}
}