```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
26 lines
1,004 B
Bash
26 lines
1,004 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
|
|
}
|