e16223b58f
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
# Template file for 'python-virtualenv-clone'
|
|
pkgname=python-virtualenv-clone
|
|
version=0.2.6
|
|
revision=3
|
|
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=6b3be5cab59e455f08c9eda573d23006b7d6fb41fae974ddaa2b275c93cc4405
|
|
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"
|
|
replaces="python3.4-virtualenv-clone>=0"
|
|
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
|
|
}
|
|
}
|
|
python3.4-virtualenv-clone_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-virtualenv-clone>=${version}_${revision}"
|
|
}
|