kmymoney: fix build, use ninja

This commit is contained in:
Đoàn Trần Công Danh 2022-01-12 15:33:00 +07:00
parent 1678ec6b32
commit 5002800717
2 changed files with 19 additions and 8 deletions

View file

@ -0,0 +1,17 @@
Index: kmymoney-5.1.2/kmymoney/mymoney/mymoneycontact.cpp
===================================================================
--- kmymoney-5.1.2.orig/kmymoney/mymoney/mymoneycontact.cpp
+++ kmymoney-5.1.2/kmymoney/mymoney/mymoneycontact.cpp
@@ -10,9 +10,9 @@
#ifdef ENABLE_ADDRESSBOOK
#include <KIdentityManagement/IdentityManager>
#include <KIdentityManagement/Identity>
-#include <AkonadiCore/RecursiveItemFetchJob>
-#include <AkonadiCore/ItemFetchScope>
-#include <AkonadiCore/Collection>
+#include <AkonadiCore/Akonadi/RecursiveItemFetchJob>
+#include <AkonadiCore/Akonadi/ItemFetchScope>
+#include <AkonadiCore/Akonadi/Collection>
#include <KContacts/Addressee>
#include <QRegularExpression>
#endif

View file

@ -5,14 +5,14 @@ revision=2
build_style=cmake build_style=cmake
configure_args="-DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson configure_args="-DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson
-DBUILD_TESTING=OFF" -DBUILD_TESTING=OFF"
make_cmd="make"
hostmakedepends="extra-cmake-modules kconfig kcoreaddons kdoctools pkg-config hostmakedepends="extra-cmake-modules kconfig kcoreaddons kdoctools pkg-config
python3 qt5-host-tools qt5-qmake gettext" python3 qt5-host-tools qt5-qmake gettext"
makedepends="akonadi5-devel aqbanking-devel gmp-devel gmpxx-devel gpgmeqt-devel makedepends="akonadi5-devel aqbanking-devel gmp-devel gmpxx-devel gpgmeqt-devel
gwenhywfar-devel gwenhywfar-qt5 kactivities5-devel kcmutils-devel gwenhywfar-devel gwenhywfar-qt5 kactivities5-devel kcmutils-devel
kcontacts-devel kdewebkit-devel kdiagram-devel kholidays-devel kcontacts-devel kdewebkit-devel kdiagram-devel kholidays-devel
kidentitymanagement-devel kross-devel libalkimia-devel libical-devel kidentitymanagement-devel kross-devel libalkimia-devel libical-devel
libofx-devel kio-devel kbookmarks-devel kwidgetsaddons-devel" libofx-devel kio-devel kbookmarks-devel kwidgetsaddons-devel
akonadi5-devel"
depends="shared-mime-info" depends="shared-mime-info"
short_desc="Personal finance manager" short_desc="Personal finance manager"
maintainer="Helmut Pozimski <helmut@pozimski.eu>" maintainer="Helmut Pozimski <helmut@pozimski.eu>"
@ -21,12 +21,6 @@ homepage="https://kmymoney.org"
distfiles="${KDE_SITE}/kmymoney/${version}/src/${pkgname}-${version}.tar.xz" distfiles="${KDE_SITE}/kmymoney/${version}/src/${pkgname}-${version}.tar.xz"
checksum=37bdc4e763a2849b9f739f73e38b389c02bde1c1b1844edcfa7e3ab1d5bf7b3b checksum=37bdc4e763a2849b9f739f73e38b389c02bde1c1b1844edcfa7e3ab1d5bf7b3b
export CMAKE_GENERATOR="Unix Makefiles"
if [ "$CROSS_BUILD" ]; then
configure_args+=" -DENABLE_LIBICAL=0"
fi
post_extract() { post_extract() {
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
vsed /find_package\(Libical\)/d -i CMakeLists.txt vsed /find_package\(Libical\)/d -i CMakeLists.txt