void-packages/srcpkgs/python-pbr/template
2016-04-12 23:51:19 +02:00

34 lines
870 B
Bash

# Template file for 'python-pbr'
pkgname=python-pbr
version=1.9.0
revision=1
noarch=yes
wrksrc="pbr-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python"
pycompile_module="pbr"
short_desc="Python2 build reasonableness"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://pypi.python.org/pypi/pbr"
license="Apache-2.0"
distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz"
checksum=d7a1d4622210037f2d1cfc5b65c0a87a2fb04cc58c08c3fbaf7eabc7a1dc48fb
post_install() {
cp -f ${DESTDIR}/usr/bin/pbr{,3}
replace_interpreter python ${DESTDIR}/usr/bin/pbr
}
python3.4-pbr_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="pbr"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/bin/pbr3
vmove usr/lib/python3.4
}
}