30 lines
789 B
Bash
30 lines
789 B
Bash
# Template file for 'python-pbr'
|
|
pkgname=python-pbr
|
|
version=5.1.1
|
|
revision=1
|
|
noarch=yes
|
|
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>"
|
|
homepage="https://docs.openstack.org/developer/pbr/"
|
|
license="Apache-2.0"
|
|
distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz"
|
|
checksum=f59d71442f9ece3dffc17bc36575768e1ee9967756e6b6535f0ee1f0054c3d68
|
|
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*
|
|
}
|
|
}
|