void-packages/srcpkgs/nagstamon/template
2019-12-23 14:11:45 +01:00

26 lines
976 B
Bash

# Template file for 'nagstamon'
pkgname=nagstamon
version=3.2.1
revision=2
archs=noarch
wrksrc=Nagstamon
build_style=python3-module
pycompile_module="Nagstamon"
hostmakedepends="python3-setuptools python3-keyring"
depends="python3-BeautifulSoup4 python3-dbus python3-keyring python3-lxml
python3-psutil python3-PyQt5-multimedia python3-PyQt5-svg python3-requests"
short_desc="Nagios status monitor for the desktop"
maintainer="Laszlo Dvornik <laulicus@zoho.com>"
license="GPL-2.0-or-later"
homepage="https://nagstamon.ifw-dresden.de"
distfiles="https://nagstamon.ifw-dresden.de/files/stable/Nagstamon-${version}.tar.gz"
checksum=a834460e78dc01f62171a83c4a11d890702264ed662863dff39edaf14ae98880
post_extract() {
# Gone in python 3.8, but these where the python 3.6 values. ;)
vsed -i -e 's/platform.dist()/("","","")/g' setup.py
}
post_install() {
chmod 644 ${DESTDIR}/usr/share/pixmaps/nagstamon.svg
mv -v ${DESTDIR}/usr/bin/nagstamon.py ${DESTDIR}/usr/bin/nagstamon
}