c987560802
```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 ```
14 lines
490 B
Bash
14 lines
490 B
Bash
# Template file for 'clazy'
|
|
pkgname=clazy
|
|
version=1.9
|
|
revision=2
|
|
build_style=cmake
|
|
makedepends="clang llvm"
|
|
depends="clang"
|
|
short_desc="Qt oriented code checker based on clang framework"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="LGPL-2.0-or-later"
|
|
homepage="https://apps.kde.org/en/clazy"
|
|
distfiles="${KDE_SITE}/clazy/${version}/src/${pkgname}-${version}.tar.xz"
|
|
checksum=4c6c2e473e6aa011cc5fab120ebcffec3fc11a9cc677e21ad8c3ea676eb076f8
|
|
nocross="Clang cannot be installed as makedep"
|