void-packages/srcpkgs/xye/template
Đoàn Trần Công Danh 3353bf4722 srcpkgs/x*: 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

22 lines
595 B
Bash

# Template file for 'xye'
pkgname=xye
version=0.12.2
revision=4
build_style=gnu-configure
makedepends="SDL_image-devel SDL_ttf-devel"
short_desc="Puzzle game inspired by Kye"
maintainer="Adrian Siekierka <asiekierka@gmail.com>"
license="Zlib, custom:resource"
homepage="http://xye.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=5d7c04f37d6b4a1821594512c7ddbc8189f968e08ecfd5af55231302f2f917d8
replaces="xye-data>=0"
post_install() {
vdoc ReadMe.html
vdoc ChangeLog
vdoc AUTHORS
vdoc NEWS
vlicense COPYING
vlicense res/detailed_COPYING
}