[neon/snap-packaging/kde-snap-akonadi] /: Build QCA and copy to root so other libraries can find it.

Scarlett Moore null at kde.org
Wed Apr 24 14:20:14 BST 2024


Git commit 616ae53d73e51e7cb8e69a5a5eea0b9f956c2c82 by Scarlett Moore.
Committed on 24/04/2024 at 13:20.
Pushed by scarlettmoore into branch 'master'.

Build QCA and copy to root so other libraries can find it.

M  +46   -3    snapcraft.yaml

https://invent.kde.org/neon/snap-packaging/kde-snap-akonadi/-/commit/616ae53d73e51e7cb8e69a5a5eea0b9f956c2c82

diff --git a/snapcraft.yaml b/snapcraft.yaml
index 2e9bda6..2aa6f05 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -455,6 +455,49 @@ parts:
         source-branch: release/24.05
         cmake-parameters: *cmakeparameters
         prime: *prime
+    qca:
+        plugin: cmake
+        build-packages:
+        - cmake
+        - ca-certificates
+        - gnupg
+        - libsasl2-dev
+        - libssl-dev
+        - pkg-config
+        - rsync
+        source: https://invent.kde.org/libraries/qca.git
+        source-branch: master
+        cmake-parameters:
+        - -DLIB_SUFFIX="/$(CRAFT_ARCH_TRIPLET_BUILD_FOR)"
+        - -DWITH_botan_PLUGIN=NO
+        - -DWITH_gcrypt_PLUGIN=NO
+        - -DWITH_nss_PLUGIN=NO
+        - -DWITH_pkcs11_PLUGIN=NO
+        - -DBUILD_WITH_QT6=ON
+        - -DQCA_FEATURE_INSTALL_DIR="/usr/lib/$(CRAFT_ARCH_TRIPLET_BUILD_FOR)/qt6/mkspecs/features"
+        - -DCMAKE_INSTALL_PREFIX=/usr
+        - -DCMAKE_BUILD_TYPE=RelWithDebInfo
+        - -DQT_MAJOR_VERSION=6
+        - -DBUILD_WITH_QT6=ON
+        - -DBUILD_TESTING=OFF
+        - -DBUILD_KWALLETD=OFF
+        - -DCMAKE_INSTALL_SYSCONFDIR=/etc
+        - -DCMAKE_INSTALL_LOCALSTATEDIR=/var
+        - -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON
+        - -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF
+        - -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON
+        - -DCMAKE_INSTALL_RUNSTATEDIR=/run
+        - -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON
+        - -DCMAKE_VERBOSE_MAKEFILE=ON
+        - -DCMAKE_INSTALL_LIBDIR=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
+        - --log-level=STATUS
+        - -DCMAKE_LIBRARY_PATH=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
+        - "-DCMAKE_FIND_ROOT_PATH=$CRAFT_STAGE\\;/snap/kde-qt6-core22-sdk/current\\;/usr"
+        - "-DCMAKE_PREFIX_PATH=$CRAFT_STAGE\\;/snap/kde-qt6-core22-sdk/current\\;/usr"
+        prime: *prime
+        override-stage: |
+            craftctl default
+            rsync -a --ignore-existing $CRAFT_PART_INSTALL/ /
     messagelib:
         after:
         - akonadi
@@ -470,6 +513,7 @@ parts:
         - gravatar
         - libkleo
         - kmbox
+        - qca
         plugin: cmake
         build-packages:
         - cmake
@@ -530,22 +574,21 @@ parts:
         - kidentitymanagement
         - kcalutils
         - messagelib
+        - qca
         plugin: cmake
         build-packages:
         - cmake
         - libqgpgme15-qt6-dev
-        - libqca-qt6-2-dev
         stage-packages:
         - libgpgmepp6
         - libqgpgme15-qt6
-        - libqca-qt6-2
         source: https://invent.kde.org/pim/akonadi-calendar.git
         source-branch: release/24.05
         cmake-parameters: *cmakeparameters
         prime: *prime
         override-stage: |
             craftctl default
-            rsync -a --ignore-existing /snap/kf6-core22-sdk/current/usr/lib/libqca-qt6.so.2.3.8 /usr/lib/
+            rsync -a --ignore-existing $CRAFT_PART_INSTALL/ /
     fix_pc_files:
         after:
         - akonadi-calendar


More information about the Neon-commits mailing list