New package: python-portend-2.2
This commit is contained in:
36
srcpkgs/python-portend/template
Normal file
36
srcpkgs/python-portend/template
Normal 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
1
srcpkgs/python3-portend
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
python-portend
|
||||||
Reference in New Issue
Block a user