void-packages/srcpkgs/perl-Authen-SASL/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

16 lines
588 B
Bash

# Template file for 'perl-Authen-SASL'
pkgname=perl-Authen-SASL
version=2.16
revision=5
wrksrc="${pkgname/perl-/}-${version}"
build_style=perl-module
hostmakedepends="perl"
makedepends="$hostmakedepends perl-Digest-HMAC"
depends="$makedepends"
short_desc="Authen::SASL -- SASL authentication framework"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Artistic-1.0-Perl, GPL-1.0-or-later"
homepage="https://metacpan.org/release/Authen-SASL"
distfiles="${CPAN_SITE}/Authen/${pkgname/perl-/}-${version}.tar.gz"
checksum=6614fa7518f094f853741b63c73f3627168c5d3aca89b1d02b1016dc32854e09