* 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
```
15 lines
506 B
Bash
15 lines
506 B
Bash
# Template file for 'wofi'
|
|
pkgname=wofi
|
|
version=1.2.4
|
|
revision=2
|
|
wrksrc="${pkgname}-v${version}"
|
|
build_style=meson
|
|
hostmakedepends="pkg-config"
|
|
makedepends="wayland-devel gtk+3-devel"
|
|
short_desc="Program launcher for Wayland compositors"
|
|
maintainer="Zach Dykstra <dykstra.zachary@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://hg.sr.ht/~scoopta/wofi"
|
|
distfiles="https://hg.sr.ht/~scoopta/wofi/archive/v${version}.tar.gz"
|
|
checksum=@fee85efc35e97946d3a94562775b902982c4ab1f521208308ecc4bb41547a5e3
|