[neon/snap-packaging/kaddressbook] /: Initial port to qt6.
Scarlett Moore
null at kde.org
Thu Apr 25 20:48:26 BST 2024
Git commit 9cc42fe526daede4bc8405d4d73355fe1b70566a by Scarlett Moore.
Committed on 25/04/2024 at 19:48.
Pushed by scarlettmoore into branch 'master'.
Initial port to qt6.
A +7 -0 debian/.gitlab-ci-neon.yml
A +92 -0 snapcraft.yaml
https://invent.kde.org/neon/snap-packaging/kaddressbook/-/commit/9cc42fe526daede4bc8405d4d73355fe1b70566a
diff --git a/debian/.gitlab-ci-neon.yml b/debian/.gitlab-ci-neon.yml
new file mode 100644
index 0000000..a4177c2
--- /dev/null
+++ b/debian/.gitlab-ci-neon.yml
@@ -0,0 +1,7 @@
+# SPDX-FileCopyrightText: none
+# SPDX-License-Identifier: CC0-1.0
+
+include:
+ - project: sysadmin/ci-utilities
+ file:
+ - /gitlab-templates/snap-snapcraft-lxd.yml
diff --git a/snapcraft.yaml b/snapcraft.yaml
new file mode 100644
index 0000000..68b4e3e
--- /dev/null
+++ b/snapcraft.yaml
@@ -0,0 +1,92 @@
+# SPDX-FileCopyrightText: 2024 Scarlett Moore <sgmoore at kde.org>
+#
+# SPDX-License-Identifier: CC0-1.0
+---
+name: kaddressbook
+confinement: strict
+grade: stable
+base: core22
+adopt-info: kaddressbook
+apps:
+ kaddressbook:
+ extensions:
+ - kde-neon-6
+ common-id: org.kde.kaddressbook.desktop
+ desktop: usr/share/applications/org.kde.kaddressbook.desktop
+ command: usr/bin/kaddressbook
+ plugs:
+ - home
+ - system-backup
+ command-chain:
+ - snap/command-chain/desktop-launch6
+plugs:
+ akonadi-svc:
+ bus: system
+ interface: dbus
+ name: org.freedesktop.Akonadi
+slots:
+ session-dbus-interface:
+ interface: dbus
+ name: org.kde.kaddressbook
+ bus: session
+package-repositories:
+- type: apt
+ components:
+ - main
+ suites:
+ - jammy
+ key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
+ url: http://origin.archive.neon.kde.org/user
+ key-server: keyserver.ubuntu.com
+parts:
+ kaddressbook:
+ parse-info:
+ - usr/share/metainfo/org.kde.kaddressbook.appdata.xml
+ plugin: cmake
+ build-snaps:
+ - akonadi-sdk/latest/edge
+ stable-snaps:
+ - akonadi/latest/edge
+ source: .
+ source-type: local
+ cmake-parameters:
+ - -DCMAKE_INSTALL_PREFIX=/usr
+ - -DCMAKE_BUILD_TYPE=RelWithDebInfo
+ - -DQT_MAJOR_VERSION=6
+ - -DBUILD_WITH_QT6=ON
+ - -DBUILD_TESTING=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
+ - --log-level=STATUS
+ - -DCMAKE_LIBRARY_PATH=lib/$CRAFT_ARCH_TRIPLET
+ prime:
+ - -usr/lib/*/cmake/*
+ - -usr/include/*
+ - -usr/share/ECM/*
+ - -usr/share/man/*
+ - -usr/share/icons/breeze-dark*
+ - -usr/bin/X11
+ - -usr/lib/gcc/$SNAPCRAFT_ARCH_TRIPLET/6.0.0
+ - -usr/lib/aspell/*
+ - -usr/share/lintian
+ cleanup:
+ after:
+ - kaddressbook
+ plugin: nil
+ build-snaps:
+ - core22
+ - kf6-core22
+ override-prime: |
+ set -eux
+ for snap in "core22" "kf6-core22"; do
+ cd "/snap/$snap/current" && find . -type f,l -exec rm -rf "${CRAFT_PRIME}/{}" \;
+ done
+
+
More information about the Neon-commits
mailing list