```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 ```
21 lines
601 B
Bash
21 lines
601 B
Bash
# Template file for 'u9fs'
|
|
pkgname=u9fs
|
|
version=20210124
|
|
revision=1
|
|
_commit=d65923fd17e8
|
|
wrksrc="plan9-from-bell-labs-u9fs-${_commit}"
|
|
build_style=gnu-makefile
|
|
make_use_env=yes
|
|
short_desc="Serves the Plan 9 protocol 9P from user-space"
|
|
maintainer="mmnmnnmnmm <mnnnm@disroot.org>"
|
|
license="custom:MIT-like"
|
|
homepage="https://bitbucket.org/plan9-from-bell-labs/u9fs"
|
|
distfiles="https://bitbucket.org/plan9-from-bell-labs/u9fs/get/${_commit}.tar.gz"
|
|
checksum=201619c1c29bad1c9ed1bc886afe7b4965cfd0781b2296c9de87db10ba71615d
|
|
|
|
do_install() {
|
|
vbin u9fs
|
|
vlicense LICENSE
|
|
mv u9fs.man u9fs.8
|
|
vman u9fs.8
|
|
}
|