void-packages/srcpkgs/FreeDoko/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

15 lines
610 B
Bash

# Template file for 'FreeDoko'
pkgname=FreeDoko
version=0.7.18
revision=1
wrksrc="FreeDoko_${version}"
build_style=gnu-makefile
make_build_target="compile"
hostmakedepends="unzip pkg-config asciidoc dos2unix gettext rsync which"
makedepends="gtkmm-devel freealut-devel"
short_desc="Free implementation of the card game Doppelkopf"
maintainer="Michael Straube <straubem@gmx.de>"
homepage="http://free-doko.sourceforge.net/en/FreeDoko.html"
license="GPL-2.0-or-later"
distfiles="${SOURCEFORGE_SITE}/free-doko/FreeDoko_${version}.src.zip"
checksum=5b9ca3ad915f36dba17a4bd22b3d7d68ac2526cf125d045a819aa8d4a2cceb4c