```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
```
19 lines
578 B
Bash
19 lines
578 B
Bash
# Template file for 'eboard'
|
|
pkgname=eboard
|
|
version=1.1.3
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="perl pkg-config"
|
|
makedepends="libpng-devel gtk+-devel gstreamer1-devel"
|
|
short_desc="A chess interface to ICS and chess engines"
|
|
maintainer="cipr3s <cipr3s@gmx.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.bergo.eng.br/eboard"
|
|
distfiles="https://github.com/fbergo/eboard/archive/v${version}.tar.gz"
|
|
checksum=2a1ba23a27c94ee4ec167bb31ab7dd6eedf148e139c9a96e8cb5ac36ec8423c1
|
|
broken="ELF in /usr/share"
|
|
|
|
pre_install() {
|
|
mkdir -p "${DESTDIR}/usr/share/eboard"
|
|
}
|