```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 ```
17 lines
501 B
Bash
17 lines
501 B
Bash
# Template file for 'mp3val'
|
|
pkgname=mp3val
|
|
version=0.1.8
|
|
revision=1
|
|
wrksrc="mp3val-${version}-src"
|
|
build_style=gnu-makefile
|
|
make_cmd="make -f Makefile.linux"
|
|
short_desc="Tool to validate and fix MPEG audio files"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://mp3val.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/mp3val/mp3val-${version}-src.tar.gz"
|
|
checksum=95a16efe3c352bb31d23d68ee5cb8bb8ebd9868d3dcf0d84c96864f80c31c39f
|
|
|
|
do_install() {
|
|
vbin mp3val
|
|
}
|