34 lines
880 B
Bash
34 lines
880 B
Bash
# Template file for 'python-decorator'
|
|
pkgname=python-decorator
|
|
version=4.0.4
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="decorator-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-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=5ad0c10fad31648cffa15ee0640eee04bbb1b843a02de26ad3700740768cc3e1
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3.4-decorator_package() {
|
|
noarch=yes
|
|
depends="python3.4"
|
|
pycompile_version="3.4"
|
|
pycompile_module="decorator.py"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|