void-packages/srcpkgs/python-chroot/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

34 lines
1,023 B
Bash

# Template file for 'python-chroot'
pkgname=python-chroot
version=0.9.18
revision=1
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@voidlinux.eu>"
license="BSD"
homepage="https://github.com/pkgcore/pychroot"
#changelog="https://github.com/pkgcore/pychroot/blob/master/NEWS.rst"
distfiles="${PYPI_SITE}/p/pychroot/pychroot-${version}.tar.gz"
checksum=ec78082c9ea8a30733ac1cf9773431fe118fb4cbeaf1098572c3b8e4e16eb7aa
alternatives="chroot:pychroot:/usr/bin/pychroot2"
post_install() {
vlicense LICENSE
}
python3-chroot_package() {
noarch=yes
depends="python3-snakeoil"
short_desc="${short_desc/Python2/Python3}"
alternatives="chroot:pychroot:/usr/bin/pychroot3"
pkg_install() {
vmove usr/lib/python3*
vmove usr/bin/pychroot3
vlicense LICENSE
}
}