31 lines
908 B
Bash
31 lines
908 B
Bash
# Template file for 'python-stem'
|
|
pkgname=python-stem
|
|
version=1.7.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="stem-${version/b/}"
|
|
build_style=python-module
|
|
pycompile_module="stem"
|
|
hostmakedepends="python-devel python3-devel"
|
|
depends="python-cryptography"
|
|
short_desc="Python2 controller library for Tor"
|
|
maintainer="Orphaned <orphan@voidlinux.eu>"
|
|
license="LGPL-3"
|
|
homepage="https://stem.torproject.org/"
|
|
changelog="https://stem.torproject.org/change_log.html#version-1-7"
|
|
distfiles="${PYPI_SITE}/s/stem/stem-${version}.tar.gz"
|
|
checksum=1b61363c32f50804a377d472761e26abed56dd9017aba43614dd4a151d7d91ab
|
|
alternatives="stem:tor-prompt:/usr/bin/tor-prompt2"
|
|
|
|
python3-stem_package() {
|
|
noarch=yes
|
|
depends="python3-cryptography"
|
|
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*
|
|
}
|
|
}
|