void-packages/srcpkgs/evtest/template
Đoàn Trần Công Danh a03d116397 srcpkgs/e*: 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

16 lines
509 B
Bash

# Template file for 'evtest'
pkgname=evtest
version=1.34
revision=1
build_style=gnu-configure
hostmakedepends="automake"
short_desc="Command line tool for displaying device input information"
maintainer="sen <ethan.k.shackelford@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://cgit.freedesktop.org/evtest/"
distfiles="https://cgit.freedesktop.org/evtest/snapshot/evtest-${version}.tar.xz"
checksum=e49f1f160b30c8f7c2a4caef5ab655f1caf816483d19fdedd6db2d251d7ab80e
pre_configure() {
autoreconf -fi
}