void-packages/srcpkgs/perl-Crypt-Rijndael/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
573 B
Bash

# Template file for 'perl-Crypt-Rijndael'
pkgname=perl-Crypt-Rijndael
version=1.14
revision=2
wrksrc="${pkgname/perl-/}-${version}"
build_style=perl-module
hostmakedepends="perl"
makedepends="perl"
depends="${hostmakedepends}"
short_desc="Crypt::Rijndael - Crypt::CBC compliant Rijndael module"
maintainer="Kevin Berry <kevin@opensourcealchemist.com>"
license="LGPL-2.0-or-later"
homepage="https://metacpan.org/release/Crypt-Rijndael"
distfiles="${CPAN_SITE}/Crypt/Crypt-Rijndael-${version}.tar.gz"
checksum=6451c3dffe8703523be2bb08d1adca97e77df2a8a4dd46944d18a99330b7850e