void-packages/srcpkgs/iwgtk/template
Đoàn Trần Công Danh 986c0a7d5e srcpkgs/i*: 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
501 B
Bash

# Template file for 'iwgtk'
pkgname=iwgtk
version=0.4
revision=1
build_style=gnu-makefile
hostmakedepends="glib-devel pkg-config"
makedepends="gtk+3-devel"
depends="iwd"
short_desc="GUI WiFi management utility to control iwd"
maintainer="caughtquick <me@caughtquick.tech>"
license="GPL-3.0-or-later"
homepage="https://github.com/J-Lentz/iwgtk/"
distfiles="https://github.com/J-Lentz/iwgtk/archive/refs/tags/v${version}.tar.gz"
checksum=71bb85546a55bf710052d4947f6be5f5a01033d04d2d14a85a7e734dd570657d