void-packages/srcpkgs/xf86-input-mtrack/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

19 lines
597 B
Bash

# Template file for 'xf86-input-mtrack'
pkgname=xf86-input-mtrack
version=0.5.0
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config xorg-util-macros"
makedepends="xorg-server-devel mtdev-devel"
depends="virtual?xserver-abi-input-24_1"
short_desc="Xorg Multitouch Trackpad Driver"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://xorg.freedesktop.org/"
distfiles="https://github.com/p2rkw/${pkgname}/archive/v${version}.tar.gz"
checksum=a976723720028832afd45bfcaab479f60833ff6f1c780be727d1791675dc14c4
lib32disabled=yes
post_install() {
vlicense COPYING
}