void-packages/srcpkgs/clazy/template
Đoàn Trần Công Danh c987560802 srcpkgs/c*: 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

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"