void-packages/srcpkgs/python-pbr/template
2018-03-29 19:49:31 +02:00

29 lines
789 B
Bash

# Template file for 'python-pbr'
pkgname=python-pbr
version=4.0.0
revision=1
noarch=yes
wrksrc="pbr-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="pbr"
short_desc="Python2 build reasonableness"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://docs.openstack.org/developer/pbr/"
license="Apache-2.0"
distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz"
checksum=cf66675e22ae91a4f20e4b8354f117d3e3d1de651513051d109cc39645fb3672
alternatives="pbr:pbr:/usr/bin/pbr2"
python3-pbr_package() {
noarch=yes
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*
}
}