```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 ```
22 lines
774 B
Bash
22 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
|
|
}
|