void-packages/srcpkgs/python-pbr/template
2021-10-09 08:00:36 -04:00

27 lines
766 B
Bash

# Template file for 'python-pbr'
pkgname=python-pbr
version=5.6.0
revision=1
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=42df03e7797b796625b1029c0400279c7c34fd7df24a7d7818a1abb5b38710dd
alternatives="pbr:pbr:/usr/bin/pbr2"
python3-pbr_package() {
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*
}
}