python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / python-decorator / template
bloba1709461bc38a6063e6d82baa6a2b1b42aa7bfb8
1 # Template file for 'python-decorator'
2 pkgname=python-decorator
3 version=4.3.0
4 revision=1
5 noarch=yes
6 wrksrc="decorator-${version}"
7 build_style=python-module
8 hostmakedepends="python-setuptools python3-setuptools"
9 depends="python"
10 pycompile_module="decorator.py"
11 short_desc="Python2 decorator module"
12 maintainer="Juan RP <xtraeme@voidlinux.eu>"
13 homepage="https://github.com/micheles/decorator"
14 license="BSD-2-Clause"
15 distfiles="${PYPI_SITE}/d/decorator/decorator-${version}.tar.gz"
16 checksum=c39efa13fbdeb4506c476c9b3babf6a718da943dab7811c206005a4a956c080c
18 post_install() {
19         vlicense LICENSE.txt LICENSE
22 python3-decorator_package() {
23         noarch=yes
24         depends="python3"
25         pycompile_module="decorator.py"
26         short_desc="${short_desc/Python2/Python3}"
27         pkg_install() {
28                 vmove usr/lib/python3*
29                 vlicense LICENSE.txt LICENSE
30         }