4a80b8d76f
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
38 lines
1 KiB
Bash
38 lines
1 KiB
Bash
# Template file for 'python-decorator'
|
|
pkgname=python-decorator
|
|
version=4.0.10
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="decorator-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
pycompile_module="decorator.py"
|
|
short_desc="Python2 decorator module"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="https://github.com/micheles/decorator"
|
|
license="2-clause-BSD"
|
|
distfiles="${PYPI_SITE}/d/decorator/decorator-${version}.tar.gz"
|
|
checksum=9c6e98edcb33499881b86ede07d9968c81ab7c769e28e9af24075f0a5379f070
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3-decorator_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="decorator.py"
|
|
replaces="python3.4-decorator>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|
|
python3.4-decorator_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-decorator>=${version}_${revision}"
|
|
}
|