4b97cd2fb4
```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 ```
18 lines
564 B
Bash
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
|
|
}
|