void-packages/srcpkgs/python-pbr/template
Alessio Sergi 217e7d31f2 srcpkgs: remove python3.4-* transitional dummy packages
After more than a year the switch to python3 packages, it is time to say
them goodbye. So long, and thanks for all the fish.
2017-12-20 11:29:51 +01:00

29 lines
789 B
Bash

# Template file for 'python-pbr'
pkgname=python-pbr
version=3.1.1
revision=2
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=05f61c71aaefc02d8e37c0a3eeb9815ff526ea28b3b76324769e6158d7f95be1
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*
}
}