* wine is kept at -Np0
```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
```
14 lines
557 B
Bash
14 lines
557 B
Bash
# Template file for 'wdisplays'
|
|
pkgname=wdisplays
|
|
version=1.0
|
|
revision=2
|
|
build_style=meson
|
|
hostmakedepends="pkg-config wayland-devel glib-devel python3-scour"
|
|
makedepends="wayland-devel libepoxy-devel gtk+3-devel"
|
|
short_desc="GUI display configurator for wlroots compositors"
|
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://cyclopsian.github.io/wdisplays/"
|
|
distfiles="https://github.com/cyclopsian/wdisplays/archive/${version}.tar.gz"
|
|
checksum=fa34d5bdfd87d833e18a89b2acacc27833d7297374719773a705f2d3e89cdddf
|