35 lines
978 B
Bash
35 lines
978 B
Bash
# Template file for 'python-virtualenv'
|
|
pkgname=python-virtualenv
|
|
version=16.1.0
|
|
revision=1
|
|
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>"
|
|
homepage="https://virtualenv.pypa.io/"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/v/virtualenv/virtualenv-${version}.tar.gz"
|
|
checksum=f899fafcd92e1150f40c8215328be38ff24b519cd95357fa6e78e006c7638208
|
|
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
|
|
}
|
|
}
|