void-packages/srcpkgs/python-pbr/template
2019-03-03 11:51:43 -03:00

29 lines
793 B
Bash

# Template file for 'python-pbr'
pkgname=python-pbr
version=5.1.3
revision=1
archs=noarch
wrksrc="pbr-${version}"
build_style=python-module
pycompile_module="pbr"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 build reasonableness"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="Apache-2.0"
homepage="https://docs.openstack.org/developer/pbr/"
distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz"
checksum=8c361cc353d988e4f5b998555c88098b9d5964c2e11acf7b0d21925a66bb5824
alternatives="pbr:pbr:/usr/bin/pbr2"
python3-pbr_package() {
archs=noarch
depends="python3"
pycompile_module="pbr"
short_desc="${short_desc/Python2/Python3}"
alternatives="pbr:pbr:/usr/bin/pbr3"
pkg_install() {
vmove usr/bin/pbr3
vmove usr/lib/python3*
}
}