37 lines
910 B
Bash
37 lines
910 B
Bash
# Template file for 'python-portend'
|
|
pkgname=python-portend
|
|
version=2.3
|
|
revision=1
|
|
noarch=yes
|
|
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.eu>"
|
|
license="MIT"
|
|
homepage="https://github.com/jaraco/portend"
|
|
distfiles="${PYPI_SITE}/p/portend/portend-${version}.tar.gz"
|
|
checksum=b7ce7d35ea262415297cbfea86226513e77b9ee5f631d3baa11992d663963719
|
|
|
|
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() {
|
|
noarch=yes
|
|
depends="python3-tempora"
|
|
pycompile_module="portend.py"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|