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

18 lines
823 B
Bash

# Template file for 'k3b'
pkgname=k3b
version=21.04.2
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules pkg-config qt5-qmake gettext
qt5-host-tools kauth kdoctools kcoreaddons"
makedepends="kcmutils-devel kfilemetadata5-devel knewstuff-devel
knotifyconfig-devel kio-devel ksolid-devel lame-devel libXft-devel
libcddb-devel libdvdread-devel libkcddb-devel libmad-devel libmpcdec-devel
libmusicbrainz5-devel libsamplerate-devel"
depends="cdrdao cdrtools dvd+rw-tools"
short_desc="CD/DVD Kreator for Linux"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://kde.org/applications/en/multimedia/org.kde.k3b"
distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
checksum=986c5073c944dbda5b49e3c1a2fbf340fb1c6af941e80b6a0020fadd1be9034b