void-packages/srcpkgs/Brainfunk/template
Đoàn Trần Công Danh ec4c2d75fa srcpkgs/[A-Z]*: 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

18 lines
519 B
Bash

# Template file for 'Brainfunk'
pkgname=Brainfunk
version=0.9.0
revision=1
wrksrc=${pkgname}-${version}-beta
build_style=gnu-makefile
make_use_env=yes
makedepends="png++"
short_desc="Brainfuck optimizing interpreter and compiler"
maintainer="misuchiru03 <misuchiru03+void@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/GReaperEx/Brainfunk"
distfiles="${homepage}/archive/v${version}-beta.tar.gz"
checksum=6b48bd1fbe0dbce20f3e8af5c799023ea820ddc45aca8fac0ccecfa2de359ee2
do_install() {
vbin bfk
}