void-packages/srcpkgs/python-virtualenv/template

35 lines
978 B
Bash

# Template file for 'python-virtualenv'
pkgname=python-virtualenv
version=16.7.5
revision=2
archs=noarch
wrksrc="virtualenv-${version}"
build_style=python-module
pycompile_module="virtualenv.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Virtual Python2 environment builder"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://virtualenv.pypa.io/"
distfiles="${PYPI_SITE}/v/virtualenv/virtualenv-${version}.tar.gz"
checksum=f78d81b62d3147396ac33fc9d77579ddc42cc2a98dd9ea38886f616b33bc7fb2
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv2"
post_install() {
vlicense LICENSE.txt
}
python3-virtualenv_package() {
archs=noarch
depends="python3-setuptools"
pycompile_module="virtualenv.py"
short_desc="${short_desc/Python2/Python3}"
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv3"
pkg_install() {
vmove usr/bin/virtualenv3
vmove usr/lib/python3*
vlicense LICENSE.txt
}
}