```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
494 B
Bash
14 lines
494 B
Bash
# Template file for 'zbackup'
|
|
pkgname=zbackup
|
|
version=1.4.4
|
|
revision=23
|
|
build_style=cmake
|
|
hostmakedepends="protobuf"
|
|
makedepends="zlib-devel liblzma-devel protobuf-devel openssl-devel lzo-devel"
|
|
short_desc="Versatile deduplicating backup tool"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://zbackup.org/"
|
|
distfiles="https://github.com/zbackup/zbackup/archive/${version}.tar.gz"
|
|
checksum=efccccd2a045da91576c591968374379da1dc4ca2e3dec4d3f8f12628fa29a85
|