* 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
```
16 lines
539 B
Bash
16 lines
539 B
Bash
# Template file for 'wvdial'
|
|
pkgname=wvdial
|
|
version=1.61
|
|
revision=7
|
|
build_style=gnu-configure
|
|
short_desc="Point-to-Point Protocol dialer"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="LGPL-2"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="wvstreams-devel"
|
|
depends="ppp"
|
|
homepage="https://code.google.com/p/wvstreams/"
|
|
distfiles="${DEBIAN_SITE}/main/w/${pkgname}/${pkgname}_${version}.orig.tar.gz"
|
|
checksum=5753d2005115aa4e365a1638f4eb6c076d4e2deafa46c3de38964918e7f62709
|
|
conf_files="/etc/ppp/peers/wvdial /etc/ppp/peers/wvdial-pipe"
|