```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
451 B
Bash
17 lines
451 B
Bash
# Template file for 'bish'
|
|
pkgname=bish
|
|
version=0.1
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
short_desc="A language that compiles to Bash"
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/tdenniston/bish"
|
|
distfiles="https://github.com/tdenniston/bish/archive/v${version}.tar.gz"
|
|
checksum=796d1efcbc9e8c7ea604881860aa8d857aad089c4eeb766283c21c210687942b
|
|
|
|
do_install() {
|
|
vbin bish
|
|
vlicense LICENSE
|
|
vdoc README.md
|
|
}
|