diff options
author | Thomas Weißschuh | 2023-08-29 10:35:18 +0200 |
---|---|---|
committer | Thomas Weißschuh | 2023-08-29 10:35:18 +0200 |
commit | ba1d24ef6b11c63b7ae2aad8e2b4e9c72284057c (patch) | |
tree | 0e4938dfc6455b3fbf50696a66394e9cc5fe53a8 | |
parent | 7b768708cb2b5547dc2df8e366405de6db0b9b91 (diff) | |
download | aur-ba1d24ef6b11c63b7ae2aad8e2b4e9c72284057c.tar.gz |
akonadi-contacts 5.24.0 compat
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | 0001-akonadi-contacts-5.24.0.patch | 115 | ||||
-rw-r--r-- | PKGBUILD | 8 |
3 files changed, 124 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = kraft pkgdesc = Kraft helps you to handle documents like quotes and invoices in your small business. pkgver = 1.0 - pkgrel = 3 + pkgrel = 4 url = http://www.volle-kraft-voraus.de/ arch = x86_64 license = GPL @@ -9,7 +9,7 @@ pkgbase = kraft makedepends = extra-cmake-modules makedepends = asciidoctor makedepends = po4a - depends = akonadi-contacts>=23.04.0-1 + depends = akonadi-contacts>=23.08.0-1 depends = akonadi depends = ctemplate optdepends = python-reportlab: default PDF generator @@ -18,8 +18,10 @@ pkgbase = kraft source = kraft-v1.0.tar.gz::https://github.com/dragotin/kraft/archive/v1.0.tar.gz source = 0001-Fix-the-application-icon.patch source = 0001-kpim5.patch + source = 0001-akonadi-contacts-5.24.0.patch sha256sums = b122c5e2be40c76016bc809596779bb156d94ef10d4279cc24c33d598b5e06e4 sha256sums = eaebaed006101c35c8b35c2f12fe527ab9713f2f284f33c60726eab335cb102d sha256sums = 8f7c24fc7324c642651170d485fa5639ff91f1db319d70f3f0faf943fa72e98d + sha256sums = 8ca65b3e35c2636bf86a8ec7d33b6e42ae74ad1068784173c7485b88f3a56506 pkgname = kraft diff --git a/0001-akonadi-contacts-5.24.0.patch b/0001-akonadi-contacts-5.24.0.patch new file mode 100644 index 000000000000..2ae4040031b9 --- /dev/null +++ b/0001-akonadi-contacts-5.24.0.patch @@ -0,0 +1,115 @@ +From f0c33980edb6903ffb2dda52aef67da5fe19457a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= <thomas@t-8ch.de> +Date: Tue, 29 Aug 2023 10:30:10 +0200 +Subject: [PATCH] akonadi-contacts-5.24.0 + +--- + CMakeLists.txt | 10 +++++++++- + src/CMakeLists.txt | 1 + + src/addressselectorwidget.cpp | 6 +++--- + src/addressselectorwidget.h | 9 ++++++--- + 4 files changed, 19 insertions(+), 7 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0f5541daabb8..0cd73f99585e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -109,7 +109,15 @@ set_package_properties(${AKO_PREFIX}AkonadiContact PROPERTIES + TYPE OPTIONAL + ) + +-if(${AKO_PREFIX}Akonadi_FOUND AND ${AKO_PREFIX}AkonadiContact_FOUND) ++find_package(${AKO_PREFIX}ContactEditor) ++set_package_properties(${AKO_PREFIX}ContactEditor PROPERTIES ++ DESCRIPTION "Library for editing contacts stored in Akonadi" ++ URL "https://www.kde.org/" ++ PURPOSE "Optionally used for addressbook integration" ++ TYPE OPTIONAL ++) ++ ++if(${AKO_PREFIX}Akonadi_FOUND AND ${AKO_PREFIX}AkonadiContact_FOUND AND ${AKO_PREFIX}ContactEditor_FOUND) + add_definitions(-DHAVE_AKONADI) + endif() + +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index a2bc5dcf05e0..eac624d40226 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -173,6 +173,7 @@ if(${AKO_PREFIX}Akonadi_FOUND) + list(APPEND KRAFT_LINK_LIBS + ${AKO_PREFIX}::AkonadiCore + ${AKO_PREFIX}::AkonadiContact ++ ${AKO_PREFIX}::ContactEditor + ${AKO_PREFIX}::AkonadiAgentBase + ${AKO_PREFIX}::AkonadiWidgets + ${AKO_PREFIX}::AkonadiXml +diff --git a/src/addressselectorwidget.cpp b/src/addressselectorwidget.cpp +index fd083634d24a..186e7d6cb519 100644 +--- a/src/addressselectorwidget.cpp ++++ b/src/addressselectorwidget.cpp +@@ -235,7 +235,7 @@ KraftContactViewer::KraftContactViewer(QWidget *parent) + lay->setMargin(0); + setLayout(lay); + #ifdef HAVE_AKONADI +- _contactViewer = new Akonadi::ContactViewer; ++ _contactViewer = new ContactEditor::ContactViewer; + _contactViewer->setShowQRCode(false); + + lay->addWidget(_contactViewer); +@@ -373,7 +373,7 @@ void AddressSelectorWidget::slotCreateNewContact() + { + #ifdef HAVE_AKONADI + // FIXME +-_addressEditor.reset(new Akonadi::ContactEditorDialog( Akonadi::ContactEditorDialog::CreateMode, this )); ++_addressEditor.reset(new ContactEditor::ContactEditorDialog( ContactEditor::ContactEditorDialog::CreateMode, this )); + _addressEditor->show(); + #endif + } +@@ -404,7 +404,7 @@ void AddressSelectorWidget::slotEditContact() + if ( index.isValid() ) { + const Akonadi::Item item = index.data( Akonadi::EntityTreeModel::ItemRole ).value<Akonadi::Item>(); + if ( item.isValid() && item.hasPayload<KContacts::Addressee>() ) { +- _addressEditor.reset(new Akonadi::ContactEditorDialog( Akonadi::ContactEditorDialog::EditMode, this )); ++ _addressEditor.reset(new ContactEditor::ContactEditorDialog( ContactEditor::ContactEditorDialog::EditMode, this )); + _addressEditor->setContact( item ); + _addressEditor->show(); + } +diff --git a/src/addressselectorwidget.h b/src/addressselectorwidget.h +index 4c5ec3e2d4ce..22bba282c4ce 100644 +--- a/src/addressselectorwidget.h ++++ b/src/addressselectorwidget.h +@@ -30,7 +30,10 @@ + #else + #define AKONADICONTACT_VERSION AKONADI_VERSION + #endif +-#if AKONADICONTACT_VERSION >= QT_VERSION_CHECK(5, 20, 0) ++#if AKONADICONTACT_VERSION >= QT_VERSION_CHECK(5, 24, 0) ++#include <AkonadiContactEditor/Akonadi/ContactViewer> ++#include <AkonadiContactEditor/Akonadi/ContactEditorDialog> ++#elif AKONADICONTACT_VERSION >= QT_VERSION_CHECK(5, 20, 0) + #include <AkonadiContact/Akonadi/ContactViewer> + #include <AkonadiContact/Akonadi/ContactEditorDialog> + #else +@@ -66,7 +69,7 @@ class KraftContactViewer : public QWidget + + private: + #ifdef HAVE_AKONADI +- Akonadi::ContactViewer *_contactViewer; ++ ContactEditor::ContactViewer *_contactViewer; + #endif + }; + +@@ -124,7 +127,7 @@ private: + QTreeView *_addressTreeView; + KraftContactViewer *_contactViewer; + #ifdef HAVE_AKONADI +- QScopedPointer<Akonadi::ContactEditorDialog> _addressEditor; ++ QScopedPointer<ContactEditor::ContactEditorDialog> _addressEditor; + #endif + }; + + +base-commit: 963262008115dd38e536629af0213baca72660be +-- +2.42.0 + @@ -6,13 +6,13 @@ pkgname=kraft pkgver=1.0 _ver=v$pkgver -pkgrel=3 +pkgrel=4 pkgdesc="Kraft helps you to handle documents like quotes and invoices in your small business." arch=('x86_64') url="http://www.volle-kraft-voraus.de/" license=('GPL') depends=( - 'akonadi-contacts>=23.04.0-1' 'akonadi' 'ctemplate' + 'akonadi-contacts>=23.08.0-1' 'akonadi' 'ctemplate' ) optdepends=( 'python-reportlab: default PDF generator' @@ -24,6 +24,7 @@ source=( "kraft-v${pkgver}.tar.gz::https://github.com/dragotin/kraft/archive/${_ver}.tar.gz" 0001-Fix-the-application-icon.patch 0001-kpim5.patch + 0001-akonadi-contacts-5.24.0.patch ) @@ -59,4 +60,5 @@ package() { sha256sums=('b122c5e2be40c76016bc809596779bb156d94ef10d4279cc24c33d598b5e06e4' 'eaebaed006101c35c8b35c2f12fe527ab9713f2f284f33c60726eab335cb102d' - '8f7c24fc7324c642651170d485fa5639ff91f1db319d70f3f0faf943fa72e98d') + '8f7c24fc7324c642651170d485fa5639ff91f1db319d70f3f0faf943fa72e98d' + '8ca65b3e35c2636bf86a8ec7d33b6e42ae74ad1068784173c7485b88f3a56506') |