```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
519 B
Bash
14 lines
519 B
Bash
# Template file for 'birdtray'
|
|
pkgname=birdtray
|
|
version=1.9.0
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="qt5-qmake qt5-host-tools"
|
|
makedepends="qt5-svg-devel qt5-x11extras-devel qt5-tools-devel"
|
|
short_desc="Run Thunderbird with a system tray icon"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/gyunaev/birdtray"
|
|
distfiles="https://github.com/gyunaev/birdtray/archive/v${version}.tar.gz"
|
|
checksum=672256bfadbde2841dcd6bad00662aeba825a4f041fa9a1980763f9eb29294d0
|