void-packages/srcpkgs/python-envdir/template
2019-12-23 18:04:59 +01:00

38 lines
1,006 B
Bash

# Template file for 'python-envdir'
pkgname=python-envdir
version=1.0.1
revision=3
archs=noarch
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="Orphaned <orphan@voidlinux.org>"
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"
archs=noarch
pycompile_module="envdir"
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}