```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
570 B
Bash
14 lines
570 B
Bash
# Template file for 'krusader'
|
|
pkgname=krusader
|
|
version=2.7.2
|
|
revision=2
|
|
build_style=cmake
|
|
hostmakedepends="extra-cmake-modules gettext pkg-config kdoctools
|
|
qt5-qmake qt5-host-tools kcoreaddons"
|
|
makedepends="kparts-devel plasma-framework-devel ksolid-devel"
|
|
short_desc="Twin-panel (commander-style) file manager"
|
|
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.krusader.org/"
|
|
distfiles="${KDE_SITE}/krusader/${version}/krusader-${version}.tar.xz"
|
|
checksum=41a39a43b3c42dd1d1ecaea86df30caff6a061fecc1d66f60859b2a3ca976109
|