```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 ```
16 lines
467 B
Bash
16 lines
467 B
Bash
# Template file for 'sutils'
|
|
pkgname=sutils
|
|
version=0.2
|
|
revision=3
|
|
build_style=gnu-makefile
|
|
makedepends="alsa-lib-devel"
|
|
short_desc="Small command-line utilities"
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
license="Unlicense"
|
|
homepage="https://github.com/baskerville/sutils/"
|
|
distfiles="https://github.com/baskerville/sutils/archive/${version}.tar.gz"
|
|
checksum=da8cccace32094430be572cf59d85256023edf9107b12c926c7beb29586c56a3
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|