void-packages/srcpkgs/python-virtualenv-clone/template
2018-03-07 18:37:40 +01:00

34 lines
1 KiB
Bash

# Template file for 'python-virtualenv-clone'
pkgname=python-virtualenv-clone
version=0.3.0
revision=1
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
pycompile_module="clonevirtualenv.py"
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=b5cfe535d14dc68dfc1d1bb4ac1209ea28235b91156e2bba8e250d291c3fb4f8
alternatives="virtualenv-clone:virtualenv-clone:/usr/bin/virtualenv-clone2"
post_install() {
vlicense LICENSE
}
python3-virtualenv-clone_package() {
noarch=yes
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
}
}