void-packages/srcpkgs/python-Pyro4/template
2016-04-24 19:25:52 +02:00

38 lines
1 KiB
Bash

# Template file for 'python-Pyro4'
pkgname=python-Pyro4
version=4.43
revision=1
wrksrc="${pkgname#*-}-${version}"
noarch=yes
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="Pyro4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-setuptools python-serpent"
short_desc="Distributed Object Middleware (IPC/RPC) for Python2"
maintainer="pulux <pulux@pf4sh.de>"
license="MIT"
homepage="http://pythonhosted.org/Pyro4/"
distfiles="https://pypi.python.org/packages/05/70/1604ed0419a45383bf69b0cb76ac71c3a958c77c9ec41af9d7b7c826e089/Pyro4-${version}.tar.gz"
checksum=b6f924fa74f21d14c851450e157711914a402bfc2f3a880c1b2c275fd4cda6d6
post_install() {
for f in ${DESTDIR}/usr/bin/*; do
cp -f ${f}{,3.4}
replace_interpreter python ${f}
done
vlicense LICENSE
}
python3.4-Pyro4_package() {
noarch=yes
depends="python-setuptools python3.4-serpent"
pycompile_version="3.4"
pycompile_module="Pyro4"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/bin/*3.4
vmove usr/lib/python3.4
vlicense LICENSE
}
}