```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 ```
23 lines
910 B
Bash
23 lines
910 B
Bash
# Template file for 'kexi'
|
|
pkgname=kexi
|
|
version=3.2.0
|
|
revision=2
|
|
build_style=cmake
|
|
hostmakedepends="extra-cmake-modules gettext kdoctools doxygen pkg-config"
|
|
makedepends="ktexteditor-devel kdb-devel kreport-devel qt5-webkit-devel
|
|
breeze-icons postgresql-libs-devel libmariadbclient-devel marble5-devel"
|
|
depends="breeze-icons"
|
|
short_desc="Visual database applications creator"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="GPL-2-or-later, LGPL-2.0-or-later"
|
|
homepage="http://www.kexi-project.org/"
|
|
distfiles="${KDE_SITE}/kexi/src/kexi-${version}.tar.xz"
|
|
checksum=7a813f9ea815a09c1e733d0e7dc879c64eee85f075389e87e6aab99cf0c1c1ff
|
|
replaces="calligra-kexi>=0"
|
|
|
|
if [ "$CROSS_BUILD" ];then
|
|
hostmakedepends+=" qt5-qmake qt5-host-tools python3 kcoreaddons"
|
|
configure_args+=" -DRUN_RESULT=0"
|
|
configure_args+=" -DRUN_RESULT__TRYRUN_OUTPUT=0"
|
|
configure_args+=" -DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson"
|
|
fi
|