void-packages/srcpkgs/python-bottle/template

30 lines
777 B
Bash

# Template file for 'python-bottle'
pkgname=python-bottle
version=0.12.17
revision=2
archs=noarch
wrksrc="bottle-${version}"
build_style=python-module
pycompile_module="bottle"
hostmakedepends="python-setuptools python3-setuptools"
short_desc="Fast and simple WSGI-framework for small web-applications (Python2)"
maintainer="Aluísio Augusto Silva Gonçalves <aluisio@aasg.name>"
license="MIT"
homepage="http://bottlepy.org"
distfiles="${PYPI_SITE}/b/bottle/bottle-${version}.tar.gz"
checksum=e9eaa412a60cc3d42ceb42f58d15864d9ed1b92e9d630b8130c871c5bb16107c
post_install() {
vlicense LICENSE
}
python3-bottle_package() {
archs=noarch
pycompile_module="bottle"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove "usr/lib/python3*"
vlicense LICENSE
}
}