void-packages/srcpkgs/python-CherryPy/template

30 lines
920 B
Bash

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