void-packages/srcpkgs/nagstamon/template

29 lines
1.0 KiB
Bash

# Template file for 'nagstamon'
pkgname=nagstamon
version=3.6.0
revision=1
wrksrc="Nagstamon-${version}"
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.de"
distfiles="https://github.com/HenriWahl/Nagstamon/archive/v${version}.tar.gz"
checksum=5ec74c50367ba75af417e04c8192b6f598a1db9e55e2db52a8dc540ac707d904
# Tarball includes no tests
make_check=no
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
}