void-packages/srcpkgs/pam-u2f/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

21 lines
749 B
Bash

# Template file for 'pam-u2f'
pkgname=pam-u2f
version=1.1.0
revision=2
wrksrc="${pkgname/-/_}-${version}"
build_style=gnu-configure
configure_args="--with-pam-dir=/usr/lib/security"
hostmakedepends="automake libtool pkg-config asciidoc"
makedepends="libfido2-devel openssl-devel pam-devel"
short_desc="Pluggable Authentication Module (PAM) for U2F"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://developers.yubico.com/pam-u2f/"
#changelog="https://raw.githubusercontent.com/Yubico/pam-u2f/master/NEWS"
distfiles="https://developers.yubico.com/pam-u2f/Releases/pam_u2f-${version}.tar.gz"
checksum=0dc3bf96ebb69c6e398b5f8991493b37a8ce1af792948af71e694f695d5edc05
post_install() {
vlicense COPYING
}