void-packages/srcpkgs/pptpclient/template
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* 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
```
2021-06-20 13:17:29 +07:00

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;'
}