void-packages/srcpkgs/sandboxfs/template
Đoàn Trần Công Danh 4b97cd2fb4 srcpkgs/s*: 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

18 lines
564 B
Bash

# Template file for 'sandboxfs'
pkgname=sandboxfs
version=0.2.0
revision=1
wrksrc="sandboxfs-sandboxfs-${version}"
build_style=cargo
hostmakedepends="pkg-config"
makedepends="fuse-devel"
short_desc="Virtual filesystem for sandboxing"
maintainer="Alex Childs <misuchiru03+void@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/bazelbuild/sandboxfs"
distfiles="https://github.com/bazelbuild/sandboxfs/archive/sandboxfs-${version}.tar.gz"
checksum=bff68e7d33ae56a3f34a79a74b2576599f5ccc381a237bbc10b5a3c3ea106b60
post_install() {
vman man/sandboxfs.1
}