void-packages/srcpkgs/touchegg/template
Đoàn Trần Công Danh 4f75cf25fd srcpkgs/t*: 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
774 B
Bash

# Template file for 'touchegg'
pkgname=touchegg
version=2.0.9
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="eudev-libudev-devel libinput-devel pugixml-devel cairo-devel libX11-devel
libXtst-devel libXrandr-devel libXi-devel glib-devel gtk+3-devel"
short_desc="Multitouch gesture recognizer"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/JoseExposito/touchegg"
distfiles="https://github.com/JoseExposito/touchegg/archive/${version}.tar.gz"
checksum=efff0f2011078cea15f2f130d1501714f8e3f82b7e883e81eccf956ac7966d0e
system_accounts="_touchegg"
post_install() {
# we don't want the package being installed to mean it should be autostarted
rm -r ${DESTDIR}/etc/xdg/autostart
vsv touchegg
}