void-packages/srcpkgs/python-decorator/template
2018-08-20 09:35:31 +02:00

32 lines
914 B
Bash

# Template file for 'python-decorator'
pkgname=python-decorator
version=4.3.1
revision=1
noarch=yes
wrksrc="decorator-${version}"
build_style=python-module
pycompile_module="decorator.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 decorator module"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="BSD-2-Clause"
homepage="https://github.com/micheles/decorator"
changelog="https://raw.githubusercontent.com/micheles/decorator/master/CHANGES.md"
distfiles="https://github.com/micheles/decorator/archive/${version}.tar.gz"
checksum=c1aab27d3f44ce8d3cb8c8c034180b2053d0cea4a011d2a58b9f85129bc3c7b0
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
}
}