2016-02-16 12:24:49 +01:00
|
|
|
# Template file for 'python-stem'
|
|
|
|
pkgname=python-stem
|
|
|
|
version=1.4.1b
|
2016-02-20 20:01:00 +01:00
|
|
|
revision=2
|
2016-02-16 12:24:49 +01:00
|
|
|
noarch=yes
|
|
|
|
wrksrc=stem-${version/b/}
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
pycompile_module="stem"
|
2016-02-20 20:01:00 +01:00
|
|
|
hostmakedepends="python-devel python3.4-devel"
|
|
|
|
depends="python-crypto"
|
|
|
|
short_desc="Python2 controller library for Tor"
|
2016-02-16 12:24:49 +01:00
|
|
|
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
|
|
|
|
|
2016-02-20 20:01:00 +01:00
|
|
|
post_install() {
|
|
|
|
vbin build-3.4/scripts-3.4/tor-prompt tor-prompt3.4
|
|
|
|
}
|
|
|
|
|
2016-02-16 12:24:49 +01:00
|
|
|
python3.4-stem_package() {
|
|
|
|
noarch=yes
|
2016-02-20 20:01:00 +01:00
|
|
|
depends="python3.4-crypto"
|
2016-02-16 12:24:49 +01:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="stem"
|
2016-02-20 20:01:00 +01:00
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
2016-02-16 12:24:49 +01:00
|
|
|
pkg_install() {
|
2016-02-20 20:01:00 +01:00
|
|
|
vmove usr/bin/tor-prompt3.4
|
|
|
|
vmove usr/lib/python3.4
|
2016-02-16 12:24:49 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|