void-packages/srcpkgs/nagstamon/template

28 lines
1.0 KiB
Bash

# Template file for 'nagstamon'
pkgname=nagstamon
version=3.4.1
revision=1
wrksrc=Nagstamon
build_style=python3-module
pycompile_module="Nagstamon"
hostmakedepends="python3-setuptools python3-keyring python3-psutil"
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=2d26cf4d64a6e27fe55f1c5e5f042af511bcb09876ae16a456aee5800a98adea
post_patch() {
# This relies on /etc/os-release, which doesn't exist without
# runit-void and doesn't provide the version expected
vsed -i setup.py -e 's/get_distro()/"void", "", "void"/'
}
post_install() {
chmod 644 ${DESTDIR}/usr/share/pixmaps/nagstamon.svg
mv -v ${DESTDIR}/usr/bin/nagstamon.py ${DESTDIR}/usr/bin/nagstamon
}