New package: python-portend-2.2

This commit is contained in:
Alessio Sergi 2018-05-28 17:07:35 +02:00
parent 98702a298d
commit 8be57ad672
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,36 @@
# Template file for 'python-portend'
pkgname=python-portend
version=2.2
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="Andrea Brancaleoni <abc@pompel.me>"
license="MIT"
homepage="https://github.com/jaraco/portend"
distfiles="${PYPI_SITE}/p/portend/portend-${version}.tar.gz"
checksum=bc48d3d99e1eaf2e9406c729f8848bfdaf87876cd3560dc3ec6c16714f529586
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
}
}

1
srcpkgs/python3-portend Symbolic link
View file

@ -0,0 +1 @@
python-portend