void-packages/srcpkgs/perl-WWW-Curl/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

19 lines
578 B
Bash

# Template build file for 'perl-WWW-Curl'.
pkgname=perl-WWW-Curl
version=4.17
revision=11
wrksrc="WWW-Curl-${version}"
build_style=perl-module
hostmakedepends="perl"
makedepends="${hostmakedepends} libcurl-devel"
depends="${hostmakedepends}"
short_desc="WWW::Curl - Perl extension interface for libcurl"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="https://metacpan.org/release/WWW-Curl"
license="MIT"
distfiles="${CPAN_SITE}/WWW/WWW-Curl-$version.tar.gz"
checksum=52ffab110e32348d775f241c973eb56f96b08eedbc110d77d257cdb0a24ab7ba
post_install() {
vlicense LICENSE
}