void-packages/srcpkgs/kinit/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

22 lines
772 B
Bash

# Template file for 'kinit'
pkgname=kinit
version=5.83.0
revision=1
build_style=cmake
hostmakedepends="kcoreaddons extra-cmake-modules libcap-progs pkg-config
gettext qt5-host-tools qt5-qmake python kdoctools"
makedepends="kio-devel kdoctools-devel libcap-devel"
short_desc="Helper library to speed up start of applications on KDE workspaces"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.0-only"
homepage="https://invent.kde.org/frameworks/kinit"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=c164e8df6350b069f634f5e7c42625026088c10886c1b934ab9e5243cc988c8a
kinit-devel_package() {
short_desc+=" - development"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/cmake
}
}