void-packages/srcpkgs/nm-tray/template
Đoàn Trần Công Danh 65749575ab srcpkgs/n*: 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

14 lines
540 B
Bash

# Template file for 'nm-tray'
pkgname=nm-tray
version=0.4.3
revision=2
build_style=cmake
hostmakedepends="qt5-qmake qt5-host-tools"
makedepends="qt5-tools-devel networkmanager-qt5-devel"
depends="NetworkManager"
short_desc="NetworkManager tray icon implemented with Qt"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="GPL-2.0-or-later"
homepage="https://github.com/palinek/nm-tray"
distfiles="https://github.com/palinek/nm-tray/archive/${version}.tar.gz"
checksum=1611c053582189091efa74c2f26277afc872a57cfd4ec9e54463f68c25ad284b