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

13 lines
501 B
Bash

# Template file for 'posixovl'
pkgname=posixovl
version=1.3
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="fuse-devel"
short_desc="FUSE filesystem to emulate POSIX features on non-POSIX filesystems"
maintainer="B. Wilson <x@wilsonb.com>"
license="GPL-2.0-or-later"
homepage="https://sourceforge.net/projects/posixovl/"
distfiles="${SOURCEFORGE_SITE}/posixovl/files/${pkgname}-${version}.tar.xz"
checksum=a827798b02c0f27b37d8a10502e76c21adac43b887a49e7234e8d27668f62e72