void-packages/srcpkgs/fs-utils/template
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc 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

22 lines
757 B
Bash

# Template file for 'fs-utils'
pkgname=fs-utils
version=1.10
revision=3
archs="~*-musl"
build_style=gnu-configure
configure_args="--disable-static"
makedepends="netbsd-rumpkernel-devel"
short_desc="NetBSD File System Access Utilities in Userland"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause, BSD-3-Clause, BSD-4-Clause"
homepage="https://github.com/rumpkernel/fs-utils"
distfiles="$homepage/archive/v$version.tar.gz
https://raw.githubusercontent.com/rumpkernel/fs-utils/master/LICENSE"
checksum="0f63aa92f673f290d4bca9009ca6f213e70ac70519c5cdac3fa64acf5afa5bae
228892fd0f669ee3051aee19f8660e4719bee9bd70c1b02adcaee518d4155866"
skip_extraction="LICENSE"
post_install() {
vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/LICENSE
}