void-packages/srcpkgs/ksysguard/template
Đoàn Trần Công Danh dd9d4a1979 srcpkgs/k*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

18 lines
730 B
Bash

# Template file for 'ksysguard'
pkgname=ksysguard
version=5.22.0
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules kdoctools qt5-qmake qt5-host-tools
pkg-config gettext kcoreaddons"
makedepends="knewstuff-devel libksysguard-devel kinit-devel libsensors-devel
libnl3-devel libpcap-devel"
depends="hicolor-icon-theme lm_sensors"
short_desc="KDE program to monitor various elements of your system"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, GFDL-1.2-only"
homepage="https://invent.kde.org/plasma/ksysguard"
distfiles="${KDE_SITE}/ksysguard/${version}/${pkgname}-${version}.tar.xz"
checksum=0f9c624e5fbb2aee906d8d9563c5a7eb09eaf38bc8e4382c072f9e6d8854622d