[arch-commits] Commit in neochat/repos/community-x86_64 (3 files)

Antonio Rojas arojas at gemini.archlinux.org
Thu Jan 6 21:27:05 UTC 2022


    Date: Thursday, January 6, 2022 @ 21:27:05
  Author: arojas
Revision: 1094892

archrelease: copy trunk to community-x86_64

Added:
  neochat/repos/community-x86_64/PKGBUILD
    (from rev 1094891, neochat/trunk/PKGBUILD)
  neochat/repos/community-x86_64/neochat-qcoro-0.4.patch
    (from rev 1094891, neochat/trunk/neochat-qcoro-0.4.patch)
Deleted:
  neochat/repos/community-x86_64/PKGBUILD

-------------------------+
 PKGBUILD                |   58 +++++++++++++++++++++++++---------------------
 neochat-qcoro-0.4.patch |   34 ++++++++++++++++++++++++++
 2 files changed, 66 insertions(+), 26 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-06 21:17:40 UTC (rev 1094891)
+++ PKGBUILD	2022-01-06 21:27:05 UTC (rev 1094892)
@@ -1,26 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Contributor: derfenix <derfenix at gmail.com>
-
-pkgname=neochat
-pkgver=21.12
-pkgrel=1
-pkgdesc='A client for matrix, the decentralized communication protocol'
-license=(GPL3)
-arch=(x86_64)
-url='https://apps.kde.org/neochat'
-depends=(qqc2-desktop-style libquotient kquickimageeditor kitemmodels kio qtkeychain-qt5 cmark hicolor-icon-theme)
-makedepends=(extra-cmake-modules qcoro-qt5)
-source=(https://download.kde.org/stable/plasma-mobile/$pkgver/$pkgname-$pkgver.tar.xz{,.sig})
-sha256sums=('8393147b95fda221dc99034c2e72d5f91d8ba85cf6f5f5d2d29734c85028ab8a'
-            'SKIP')
-validpgpkeys=(B3ED0BAE371BEDA00717921D18F4795C1CE7042B  # Carl Schwan <carl at carlschwan.eu>
-              0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D) # Bhushan Shah (mykolab address) <bshah at mykolab.com>
-
-build() {
-  cmake -B build -S $pkgname-$pkgver
-  cmake --build build
-}
-
-package() {
-  DESTDIR="$pkgdir" cmake --install build
-}

Copied: neochat/repos/community-x86_64/PKGBUILD (from rev 1094891, neochat/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-01-06 21:27:05 UTC (rev 1094892)
@@ -0,0 +1,32 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: derfenix <derfenix at gmail.com>
+
+pkgname=neochat
+pkgver=21.12
+pkgrel=2
+pkgdesc='A client for matrix, the decentralized communication protocol'
+license=(GPL3)
+arch=(x86_64)
+url='https://apps.kde.org/neochat'
+depends=(qqc2-desktop-style libquotient kquickimageeditor kitemmodels kio syntax-highlighting qtkeychain-qt5 cmark hicolor-icon-theme)
+makedepends=(extra-cmake-modules qcoro-qt5)
+source=(https://download.kde.org/stable/plasma-mobile/$pkgver/$pkgname-$pkgver.tar.xz{,.sig}
+        neochat-qcoro-0.4.patch)
+sha256sums=('8393147b95fda221dc99034c2e72d5f91d8ba85cf6f5f5d2d29734c85028ab8a'
+            'SKIP'
+            '9091c9994928052a60014d45f8c2f328155de326c78f39bc6d303263fdc3335c')
+validpgpkeys=(B3ED0BAE371BEDA00717921D18F4795C1CE7042B  # Carl Schwan <carl at carlschwan.eu>
+              0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D) # Bhushan Shah (mykolab address) <bshah at mykolab.com>
+
+prepare() {
+  patch -d $pkgname-$pkgver -p1 < neochat-qcoro-0.4.patch # Support qcoro 0.4
+}
+
+build() {
+  cmake -B build -S $pkgname-$pkgver
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+}

Copied: neochat/repos/community-x86_64/neochat-qcoro-0.4.patch (from rev 1094891, neochat/trunk/neochat-qcoro-0.4.patch)
===================================================================
--- neochat-qcoro-0.4.patch	                        (rev 0)
+++ neochat-qcoro-0.4.patch	2022-01-06 21:27:05 UTC (rev 1094892)
@@ -0,0 +1,34 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 58f9949..2303b24 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -108,7 +108,10 @@ set_package_properties(KQuickImageEditor PROPERTIES
+     PURPOSE "Add image editing capability to image attachments"
+ )
+ 
+-find_package(QCoro REQUIRED)
++find_package(QCoro5 COMPONENTS Coro QUIET)
++if(NOT QCoro5_FOUND)
++    find_package(QCoro REQUIRED)
++endif()
+ 
+ qcoro_enable_coroutines()
+ 
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 7ad3c88..54aab85 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -62,7 +62,12 @@ if(NOT ANDROID)
+ endif()
+ 
+ target_include_directories(neochat PRIVATE ${CMAKE_BINARY_DIR})
+-target_link_libraries(neochat PRIVATE Qt::Quick Qt::Qml Qt::Gui Qt::Network Qt::QuickControls2 KF5::I18n KF5::Kirigami2 KF5::Notifications KF5::ConfigCore KF5::ConfigGui KF5::CoreAddons Quotient cmark::cmark ${QTKEYCHAIN_LIBRARIES} QCoro::QCoro)
++target_link_libraries(neochat PRIVATE Qt::Quick Qt::Qml Qt::Gui Qt::Network Qt::QuickControls2 KF5::I18n KF5::Kirigami2 KF5::Notifications KF5::ConfigCore KF5::ConfigGui KF5::CoreAddons Quotient cmark::cmark ${QTKEYCHAIN_LIBRARIES})
++if(TARGET QCoro5::Coro)
++    target_link_libraries(neochat PRIVATE QCoro5::Coro)
++else()
++    target_link_libraries(neochat PRIVATE QCoro::QCoro)
++endif()
+ kconfig_add_kcfg_files(neochat GENERATE_MOC neochatconfig.kcfgc)
+ 
+ if(NEOCHAT_FLATPAK)



More information about the arch-commits mailing list