* runit 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
496 B
Bash
14 lines
496 B
Bash
# Template file for 'rofs-filtered'
|
|
pkgname=rofs-filtered
|
|
version=1.7
|
|
revision=2
|
|
wrksrc="${pkgname}-rel-${version}"
|
|
build_style=cmake
|
|
makedepends="fuse-devel"
|
|
short_desc="Filtered read only filesystem for FUSE"
|
|
maintainer="Alexander Gehrke <void@qwertyuiop.de>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/gburca/rofs-filtered"
|
|
distfiles="https://github.com/gburca/rofs-filtered/archive/rel-${version}.tar.gz"
|
|
checksum=d66066dfd0274a2fb7b71dd929445377dd23100b9fa43e3888dbe3fc7e8228e8
|