void-packages/srcpkgs/python-portend/template

38 lines
996 B
Bash

# Template file for 'python-portend'
pkgname=python-portend
version=2.5
revision=1
archs=noarch
wrksrc="portend-${version}"
build_style=python-module
pycompile_module="portend.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-tempora"
short_desc="TCP port monitoring utilities (Python2)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/jaraco/portend"
changelog="https://github.com/jaraco/portend/blob/master/CHANGES.rst"
distfiles="https://github.com/jaraco/portend/archive/${version}.tar.gz"
checksum=69fa3194739142b62bd6e44f0f0cb0828ddee521f4c7b4634abc5b5e9a54f85a
pre_build() {
sed -i setup.py \
-e '/setuptools_scm/d' \
-e "s|use_scm_version=True|version='${version}'|"
}
post_install() {
vlicense LICENSE
}
python3-portend_package() {
archs=noarch
depends="python3-tempora"
pycompile_module="portend.py"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}