void-packages/srcpkgs/nagstamon/template

27 lines
1004 B
Bash

# Template file for 'nagstamon'
pkgname=nagstamon
version=3.4.1
revision=2
wrksrc=Nagstamon
build_style=python3-module
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=7a9611f40b08269bba4100ab2598ee089c7d0ebc6c4e9d7132689342f71150ec
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
}