dd9d4a1979
```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
596 B
Bash
14 lines
596 B
Bash
# Template file for 'kig'
|
|
pkgname=kig
|
|
version=21.04.2
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="extra-cmake-modules kcoreaddons kdoctools gettext
|
|
pkg-config qt5-host-tools qt5-qmake"
|
|
makedepends="boost-devel kparts-devel ktexteditor-devel python3-devel"
|
|
short_desc="KDE education tool for interactive geometry"
|
|
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://www.kde.org/applications/education/kig/"
|
|
distfiles="${KDE_SITE}/release-service/${version}/src/kig-${version}.tar.xz"
|
|
checksum=5939d298b40d265f1ddef4bd81540b1a26204d858f85db5847cc102366a5ce58
|