diff --git a/srcpkgs/python-pbr/template b/srcpkgs/python-pbr/template index b9d91f99c13..b49a0fe67b8 100644 --- a/srcpkgs/python-pbr/template +++ b/srcpkgs/python-pbr/template @@ -2,7 +2,7 @@ pkgname=python-pbr version=5.6.0 revision=2 -build_style=python-module +build_style=python2-module pycompile_module="pbr" hostmakedepends="python-setuptools python3-setuptools" depends="python" @@ -14,13 +14,6 @@ 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* - } +post_install() { + mv ${DESTDIR}/usr/bin/pbr{,2} } diff --git a/srcpkgs/python3-pbr b/srcpkgs/python3-pbr deleted file mode 120000 index 7d5e74920c1..00000000000 --- a/srcpkgs/python3-pbr +++ /dev/null @@ -1 +0,0 @@ -python-pbr \ No newline at end of file diff --git a/srcpkgs/python3-pbr/template b/srcpkgs/python3-pbr/template new file mode 100644 index 00000000000..328011387cf --- /dev/null +++ b/srcpkgs/python3-pbr/template @@ -0,0 +1,18 @@ +# Template file for 'python3-pbr' +pkgname=python3-pbr +version=5.6.0 +revision=2 +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +short_desc="Python3 build reasonableness" +maintainer="Orphaned " +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/pbr3" + +post_install() { + mv ${DESTDIR}/usr/bin/pbr{,3} +}