Files
void-packages/srcpkgs/python-decorator/template
Alessio Sergi 217e7d31f2 srcpkgs: remove python3.4-* transitional dummy packages
After more than a year the switch to python3 packages, it is time to say
them goodbye. So long, and thanks for all the fish.
2017-12-20 11:29:51 +01:00

32 lines
820 B
Bash

# Template file for 'python-decorator'
pkgname=python-decorator
version=4.1.2
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=7cb64d38cb8002971710c8899fbdfb859a23a364b7c99dab19d1f719c2ba16b5
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
}
}