void-packages/srcpkgs/python-decorator/template

32 lines
820 B
Bash

# Template file for 'python-decorator'
pkgname=python-decorator
version=4.3.0
revision=1
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="BSD-2-Clause"
distfiles="${PYPI_SITE}/d/decorator/decorator-${version}.tar.gz"
checksum=c39efa13fbdeb4506c476c9b3babf6a718da943dab7811c206005a4a956c080c
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-decorator_package() {
noarch=yes
depends="python3"
pycompile_module="decorator.py"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}