void-packages/srcpkgs/python-virtualenv-clone/template

35 lines
1.0 KiB
Bash

# Template file for 'python-virtualenv-clone'
pkgname=python-virtualenv-clone
version=0.4.0
revision=1
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="clonevirtualenv.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Script to clone virtualenvs (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/edwardgeorge/virtualenv-clone"
license="MIT"
distfiles="${PYPI_SITE}/v/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz"
checksum=06c5a8bc77f3ed0ad130a690e623e27e07b6599dbdbf83e089cc3a2c6b191da0
alternatives="virtualenv-clone:virtualenv-clone:/usr/bin/virtualenv-clone2"
post_install() {
vlicense LICENSE
}
python3-virtualenv-clone_package() {
archs=noarch
depends="python3-setuptools"
pycompile_module="clonevirtualenv.py"
short_desc="${short_desc/Python2/Python3}"
alternatives="virtualenv-clone:virtualenv-clone:/usr/bin/virtualenv-clone3"
pkg_install() {
vmove usr/bin/virtualenv-clone3
vmove usr/lib/python3*
vlicense LICENSE
}
}