2016-08-05 03:16:58 +02:00
|
|
|
# Template file for 'python-chroot'
|
|
|
|
pkgname=python-chroot
|
|
|
|
version=0.9.15
|
2016-10-17 10:38:30 +02:00
|
|
|
revision=3
|
|
|
|
noarch=yes
|
2016-10-14 10:55:45 +02:00
|
|
|
wrksrc="pychroot-${version}"
|
2016-08-05 03:16:58 +02:00
|
|
|
build_style=python-module
|
2016-10-14 10:55:45 +02:00
|
|
|
pycompile_module="pychroot"
|
2016-10-17 10:38:30 +02:00
|
|
|
hostmakedepends="python-setuptools python3-setuptools python-snakeoil python3-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"
|
2016-10-14 10:55:45 +02:00
|
|
|
distfiles="${PYPI_SITE}/p/pychroot/pychroot-${version}.tar.gz"
|
2016-08-05 03:16:58 +02:00
|
|
|
checksum=d2cf687b9c890fe5adea73d1b248d3d09d3d629d946be1fc6be989eddc9f5152
|
2016-10-17 10:38:30 +02:00
|
|
|
alternatives="chroot:pychroot:/usr/bin/pychroot2"
|
2016-08-05 03:16:58 +02:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
|
2016-10-17 10:38:30 +02:00
|
|
|
python3-chroot_package() {
|
2016-08-05 03:16:58 +02:00
|
|
|
noarch=yes
|
2016-10-17 10:38:30 +02:00
|
|
|
depends="python3-snakeoil"
|
|
|
|
replaces="python3.4-chroot>=0"
|
|
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
|
|
alternatives="chroot:pychroot:/usr/bin/pychroot3"
|
2016-08-05 03:16:58 +02:00
|
|
|
pkg_install() {
|
2016-10-17 10:38:30 +02:00
|
|
|
vmove usr/lib/python3*
|
|
|
|
vmove usr/bin/pychroot3
|
2016-08-05 03:16:58 +02:00
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
}
|
2016-10-17 10:38:30 +02:00
|
|
|
python3.4-chroot_package() {
|
|
|
|
noarch=yes
|
|
|
|
build_style=meta
|
|
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
|
|
depends="python3-chroot>=${version}_${revision}"
|
|
|
|
}
|