void-packages/srcpkgs/python-portend/template

37 lines
914 B
Bash
Raw Normal View History

2018-05-28 17:07:35 +02:00
# Template file for 'python-portend'
pkgname=python-portend
2018-06-11 07:11:22 +02:00
version=2.3
2018-05-28 17:07:35 +02:00
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"
2018-06-11 07:11:22 +02:00
checksum=b7ce7d35ea262415297cbfea86226513e77b9ee5f631d3baa11992d663963719
2018-05-28 17:07:35 +02:00
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
}
}