void-packages/srcpkgs/python-chroot/template

36 lines
1007 B
Bash
Raw Normal View History

2016-08-05 03:16:58 +02:00
# Template file for 'python-chroot'
pkgname=python-chroot
version=0.9.15
revision=1
_distname=pychroot
wrksrc="${_distname}-${version}"
build_style=python-module
pycompile_module="${_distname}"
python_versions="2.7 3.4"
pycompile_version="2.7"
noarch=yes
2016-08-05 03:23:01 +02:00
hostmakedepends="python-setuptools python3.4-setuptools python-snakeoil python3.4-snakeoil"
2016-08-05 03:16:58 +02:00
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}/$(printf %.1s $_distname)/${_distname}/${_distname}-${version}.tar.gz"
checksum=d2cf687b9c890fe5adea73d1b248d3d09d3d629d946be1fc6be989eddc9f5152
post_install() {
vlicense LICENSE
}
python3.4-chroot_package() {
noarch=yes
depends="${depends/python-/python3.4-}"
pycompile_version="3.4"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
vmove usr/bin/pychroot3.4
vlicense LICENSE
}
}