void-packages/srcpkgs/python-envdir/template

41 lines
1.0 KiB
Bash

# Template file for 'python-envdir'
pkgname=python-envdir
version=1.0.1
revision=1
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
pycompile_module="envdir"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="A Python2 port of daemontools' envdir"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="MIT"
homepage="https://github.com/jezdez/envdir"
distfiles="https://github.com/jezdez/envdir/archive/${version}.tar.gz"
checksum=779a308a07a673f391db87ef639d4b0f9921238bba02dd3e98c3281520faee95
noarch=yes
alternatives="
python-envdir:envdir:/usr/bin/envdir2
python-envdir:envshell:/usr/bin/envshell2
"
post_install() {
vlicense LICENSE
}
python3-envdir_package() {
alternatives="
python-envdir:envdir:/usr/bin/envdir3
python-envdir:envshell:/usr/bin/envshell3
"
noarch=yes
pycompile_module="envdir"
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}