void-packages/srcpkgs/python-chroot/template

41 lines
1.1 KiB
Bash

# Template file for 'python-chroot'
pkgname=python-chroot
version=0.9.16
revision=2
noarch=yes
wrksrc="pychroot-${version}"
build_style=python-module
pycompile_module="pychroot"
hostmakedepends="python-setuptools python3-setuptools python-snakeoil python3-snakeoil"
depends="python-snakeoil"
short_desc="Python2 Library and CLI tool that simplify chroot handling"
maintainer="Toyam Cox <Vaelatern@gmail.com>"
license="BSD"
homepage="https://github.com/pkgcore/pychroot"
distfiles="${PYPI_SITE}/p/pychroot/pychroot-${version}.tar.gz"
checksum=8bcfde4f045d34181ab6ec869abb6608c1340de4dd15ceac003287ec610d221d
alternatives="chroot:pychroot:/usr/bin/pychroot2"
post_install() {
vlicense LICENSE
}
python3-chroot_package() {
noarch=yes
depends="python3-snakeoil"
replaces="python3.4-chroot>=0"
short_desc="${short_desc/Python2/Python3}"
alternatives="chroot:pychroot:/usr/bin/pychroot3"
pkg_install() {
vmove usr/lib/python3*
vmove usr/bin/pychroot3
vlicense LICENSE
}
}
python3.4-chroot_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-chroot>=${version}_${revision}"
}