void-packages/srcpkgs/hxtools/template
Đoàn Trần Công Danh 200bed5c06 srcpkgs/h*: 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

14 lines
539 B
Bash

# Template file for 'hxtools'
pkgname=hxtools
version=20200428
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libHX-devel"
short_desc="Collection of small tools over the years by j.eng (inai.de)"
maintainer="nexolight <snow.dream.ch@gmail.com>"
license="WTFPL, LGPL-2.1/LGPL-3.0, GPL-2.0-or-later"
homepage="http://inai.de/projects/hxtools"
distfiles="http://inai.de/files/hxtools/hxtools-${version}.tar.xz"
checksum=45ceee8db0b9b926712b336ebb91c572f2247cec64862f6171fc416db4e9e12f
conflicts="bsd-games>=0"