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

13 lines
545 B
Bash

# Template file for 'kcov'
pkgname=kcov
version=38
revision=1
build_style=cmake
hostmakedepends="python3 pkg-config"
makedepends="binutils-devel libcurl-devel elfutils-devel"
short_desc="Code coverage tester for compiled programs, Python and shell"
maintainer="Felix Van der Jeugt <felix.vanderjeugt@gmail.com>"
license="GPL-2.0-only"
homepage="https://simonkagstrom.github.io/kcov/index.html"
distfiles="https://github.com/SimonKagstrom/kcov/archive/v${version}.tar.gz"
checksum=b37af60d81a9b1e3b140f9473bdcb7975af12040feb24cc666f9bb2bb0be68b4