void-packages/srcpkgs/nfs4-acl-tools/template
Đoàn Trần Công Danh 65749575ab srcpkgs/n*: convert patches to -Np1
```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

29 lines
896 B
Bash

# Template file for 'nfs4-acl-tools'
pkgname=nfs4-acl-tools
version=0.3.7
revision=1
build_style=gnu-configure
configure_args="ac_cv_path_LIBTOOL='/usr/bin/libtool --tag=CC'
ac_cv_func_malloc_0_nonnull=yes"
hostmakedepends="automake autoconf libtool"
makedepends="attr-devel"
short_desc="Client tools for manipulating NFSv4 ACLs directly"
maintainer="Giuseppe Fierro <gspe@ae-design.ws>"
license="BSD-3-Clause, LGPL-2.1-or-later, GPL-2.0-only"
homepage="http://linux-nfs.org/wiki/index.php/Main_Page"
distfiles="http://linux-nfs.org/~bfields/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=1b929f15b7b8d1701a416a0888df61a2a173b50eeaa9fed4f28543ffe8989503
disable_parallel_build=yes
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"
fi
do_configure() {
sed -i "s;@configure_args@;$(echo $configure_args | paste);" Makefile
}
post_install() {
vlicense COPYING
}