38 lines
996 B
Bash
38 lines
996 B
Bash
# Template file for 'python-portend'
|
|
pkgname=python-portend
|
|
version=2.4
|
|
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=61aa1a8fd76d64bd6093e4151a2bfeda177d5083bf2e2bcc92a053bd2104fde3
|
|
|
|
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
|
|
}
|
|
}
|