void-packages/srcpkgs/python-Cheroot/template

30 lines
776 B
Bash
Raw Normal View History

2017-04-19 23:06:14 +02:00
# Template file for 'python-Cheroot'
pkgname=python-Cheroot
version=5.4.0
revision=1
wrksrc="cheroot-$version"
noarch=yes
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
short_desc="High-performance, pure-Python HTTP server"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="BSD"
homepage="https://github.com/cherrypy/cheroot"
distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz"
checksum=f4b3d2eaa949b8a2f6676e3bca7c68cd358e4aa6bab437362b4bee6781626135
post_install() {
vlicense LICENSE.md
}
python3-Cheroot_package() {
noarch=yes
pycompile_module="cheroot"
short_desc="${short_desc/Python2/Python3}"
alternatives="cherrypy:cherryd:/usr/bin/cherryd3"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.md
}
}