void-packages/srcpkgs/python3-CherryPy/template

29 lines
862 B
Bash

# Template file for 'python3-CherryPy'
pkgname=python3-CherryPy
version=18.1.0
revision=1
archs=noarch
wrksrc="CherryPy-${version}"
build_style=python3-module
pycompile_module="cherrypy"
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-Cheroot python3-portend python3-zc.lockfile"
short_desc="Object-oriented HTTP framework (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://cherrypy.org/"
distfiles="${PYPI_SITE}/C/CherryPy/CherryPy-${version}.tar.gz"
checksum=4dd2f59b5af93bd9ca85f1ed0bb8295cd0f5a8ee2b84d476374d4e070aa5c615
alternatives="cherrypy:cherryd:/usr/bin/cherryd3"
pre_build() {
sed -i setup.py \
-e '/setuptools_scm/d' \
-e "s|use_scm_version=True|version='${version}'|"
}
post_install() {
mv ${DESTDIR}/usr/bin/cherryd ${DESTDIR}/usr/bin/cherryd3
vlicense LICENSE.md
}