65749575ab
```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 ```
19 lines
511 B
Bash
19 lines
511 B
Bash
# Template file for 'nocache'
|
|
pkgname=nocache
|
|
version=1.1
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
short_desc="Minimize filesystem caching effects"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://github.com/Feh/nocache"
|
|
distfiles="https://github.com/Feh/nocache/archive/v${version}.tar.gz"
|
|
checksum=e5441b27f60e1af5551b76fe0c8a9da17b8c31675794d9d49bf59c7c47fbb9b9
|
|
|
|
pre_build() {
|
|
sed -i -e '/#include <error.h>/d' cachedel.c cachestats.c
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|