void-packages/srcpkgs/bish/template
Đoàn Trần Công Danh c6ce65d3d0 srcpkgs/b*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

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
}