void-packages/srcpkgs/perl-Crypt-DH/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

15 lines
583 B
Bash

# Template file for 'perl-Crypt-DH'
pkgname=perl-Crypt-DH
version=0.07
revision=10
wrksrc="Crypt-DH-${version}"
build_style=perl-module
hostmakedepends="perl perl-Math-BigInt-GMP perl-Archive-Zip"
makedepends="$hostmakedepends"
depends="$makedepends"
short_desc="Crypt::DH - Diffie-Hellman key exchange system"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Artistic-1.0-Perl, GPL-1.0-or-later"
homepage="https://metacpan.org/release/Crypt-DH"
distfiles="${CPAN_SITE}/Crypt/Crypt-DH-${version}.tar.gz"
checksum=c88cf3423b01e6782e8986d7fe5304436ab84b0925c4498c6fdfa17ef9a37f5f