dd9d4a1979
```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 ```
17 lines
710 B
Bash
17 lines
710 B
Bash
# Template file for 'kcm-wacomtablet'
|
|
pkgname=kcm-wacomtablet
|
|
version=3.2.0
|
|
revision=2
|
|
wrksrc="wacomtablet-$version"
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config gettext extra-cmake-modules qt5-qmake qt5-host-tools
|
|
kdoctools kcoreaddons"
|
|
makedepends="qt5-devel qt5-x11extras-devel qt5-declarative-devel
|
|
plasma-workspace-devel libwacom-devel xf86-input-wacom-devel"
|
|
depends="xf86-input-wacom"
|
|
short_desc="GUI for the Wacom Linux Drivers"
|
|
maintainer="Piraty <piraty1@inbox.ru>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://invent.kde.org/system/wacomtablet"
|
|
distfiles="${KDE_SITE}/wacomtablet/${version}/wacomtablet-${version}.tar.xz"
|
|
checksum=c80ce63a41f6fcbb50ac4c2130ed2f8273c4b744e62e33d4b714bf83e8e5f7a4
|