void-packages/srcpkgs/python-Cheroot/template

37 lines
937 B
Bash
Raw Normal View History

2017-04-19 23:06:14 +02:00
# Template file for 'python-Cheroot'
pkgname=python-Cheroot
2017-05-04 10:09:25 +02:00
version=5.5.0
revision=1
2017-04-19 23:06:14 +02:00
noarch=yes
2017-04-21 15:04:27 +02:00
wrksrc="cheroot-${version}"
2017-04-19 23:06:14 +02:00
build_style=python-module
2017-04-21 15:04:27 +02:00
pycompile_module="cheroot"
2017-04-19 23:06:14 +02:00
hostmakedepends="python-setuptools python3-setuptools"
2017-04-21 15:04:27 +02:00
depends="python-six"
2017-04-19 23:06:14 +02:00
short_desc="High-performance, pure-Python HTTP server"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
2017-04-21 15:04:27 +02:00
license="3-clause-BSD"
2017-04-19 23:06:14 +02:00
homepage="https://github.com/cherrypy/cheroot"
distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz"
2017-05-04 10:09:25 +02:00
checksum=59e349f91b9230930f7078646bb92b3a5b0f9cf19a6ff949777409fd289a1eba
2017-04-19 23:06:14 +02:00
2017-04-21 15:04:27 +02:00
pre_build() {
sed -i setup.py \
-e '/setuptools_scm/d' \
-e "s|use_scm_version=True|version='${version}'|"
}
2017-04-19 23:06:14 +02:00
post_install() {
2017-04-21 15:04:27 +02:00
vlicense LICENSE.md LICENSE
2017-04-19 23:06:14 +02:00
}
python3-Cheroot_package() {
noarch=yes
2017-04-21 15:04:27 +02:00
depends="python3-six"
2017-04-19 23:06:14 +02:00
pycompile_module="cheroot"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
2017-04-21 15:04:27 +02:00
vlicense LICENSE.md LICENSE
2017-04-19 23:06:14 +02:00
}
}