75403cef76
```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 ```
20 lines
534 B
Bash
20 lines
534 B
Bash
# Template file for '9mount'
|
|
pkgname=9mount
|
|
version=1.3
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
make_install_args="prefix=\${DESTDIR}/usr"
|
|
short_desc="A set of SUID tools for mounting 9p filesystems via v9fs"
|
|
maintainer="Christopher Brannon <chris@the-brannons.com>"
|
|
license="ISC"
|
|
homepage="http://sqweek.net/code/9mount/"
|
|
distfiles="http://sqweek.net/9p/$pkgname-$version.tar.gz"
|
|
checksum=820d80b9b478d05ecb022ad658477b37cfc2414a8669c3af17d192a522064c17
|
|
|
|
pre_build() {
|
|
sed -i '/chown/d' Makefile
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|