void-packages/srcpkgs/python-CherryPy/template

29 lines
909 B
Bash

# Template file for 'python-CherryPy'
pkgname=python-CherryPy
reverts="18.0.1_1 18.0.0_1"
version=17.4.1
revision=1
noarch=yes
wrksrc="CherryPy-${version}"
build_style=python2-module
hostmakedepends="python-setuptools"
depends="python-setuptools python-six python-Cheroot python-portend python-contextlib2 python-zc.lockfile"
pycompile_module="cherrypy"
short_desc="Object-oriented HTTP framework (Python2)"
maintainer="Orphaned <orphan@voidlinux.eu>"
license="BSD-3-Clause"
homepage="https://cherrypy.org/"
distfiles="${PYPI_SITE}/C/CherryPy/CherryPy-${version}.tar.gz"
checksum=fba9fd96d0d9d5b4d680f7ec08e0758a7e5005039ee164e7936594ffad3a81ce
alternatives="cherrypy:cherryd:/usr/bin/cherryd2"
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/cherryd2
vlicense LICENSE.md
}