void-packages/srcpkgs/input-utils/template
Đoàn Trần Công Danh 986c0a7d5e srcpkgs/i*: 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

23 lines
643 B
Bash

# Template file for 'input-utils'
pkgname=input-utils
version=1.3
revision=1
build_style=gnu-makefile
maintainer="Orphaned <orphan@voidlinux.org>"
short_desc="Small collection of input layer utilities"
homepage="https://www.kraxel.org/blog/linux/input/"
license="GPL-2"
distfiles="https://www.kraxel.org/releases/input/input-${version}.tar.gz"
checksum=9142c34d508f2da4cd53d6348fee77e30b69c35c8dabfadfc5a6db09c4bd8087
wrksrc="input-${version}"
do_install() {
vman lsinput.man lsinput.8
vman input-events.man input-events.8
vman input-kbd.man input-kbd.8
vbin lsinput
vbin input-events
vbin input-kbd
vbin input-recv
vbin input-send
}