32 lines
909 B
Bash
32 lines
909 B
Bash
# Template file for 'python-decorator'
|
|
pkgname=python-decorator
|
|
version=4.4.0
|
|
revision=2
|
|
archs=noarch
|
|
wrksrc="decorator-${version}"
|
|
build_style=python-module
|
|
pycompile_module="decorator.py"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
short_desc="Python2 decorator module"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/micheles/decorator"
|
|
changelog="https://raw.githubusercontent.com/micheles/decorator/master/CHANGES.md"
|
|
distfiles="${PYPI_SITE}/d/decorator/decorator-${version}.tar.gz"
|
|
checksum=86156361c50488b84a3f148056ea716ca587df2f0de1d34750d35c21312725de
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3-decorator_package() {
|
|
archs=noarch
|
|
depends="python3"
|
|
pycompile_module="decorator.py"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|