* par 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 ```
23 lines
739 B
Bash
23 lines
739 B
Bash
# Template file for 'pptpclient'
|
|
pkgname=pptpclient
|
|
version=1.10.0
|
|
revision=1
|
|
wrksrc=pptp-${version}
|
|
build_style=gnu-makefile
|
|
hostmakedepends="perl"
|
|
depends="iproute2 ppp"
|
|
short_desc="Client for the proprietary Microsoft Point-to-Point Tunneling Protocol"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://pptpclient.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/pptpclient/files/pptp-${version}.tar.gz"
|
|
checksum=82492db8e487ce73b182ee7f444251d20c44f5c26d6e96c553ec7093aefb5af4
|
|
|
|
pre_build() {
|
|
sed -i Makefile \
|
|
-e 's;PPPD =.*;PPPD=/usr/bin/pppd;' \
|
|
-e 's;IP =.*;IP=/usr/bin/ip;' \
|
|
-e 's;CFLAGS =;CFLAGS?=;' \
|
|
-e 's;LDFLAGS =;LDFLAGS?=;' \
|
|
-e 's;BINDIR=.*;BINDIR=$(DESTDIR)/usr/bin;'
|
|
}
|