void-packages/srcpkgs/python-envdir/template

39 lines
1005 B
Bash

# Template file for 'python-envdir'
pkgname=python-envdir
version=1.0.1
revision=2
noarch=yes
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
pycompile_module="envdir"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="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
alternatives="
envdir:envdir:/usr/bin/envdir2
envdir:envshell:/usr/bin/envshell2"
post_install() {
vlicense LICENSE
}
python3-envdir_package() {
alternatives="
envdir:envdir:/usr/bin/envdir3
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
}
}