[neon/snap-packaging/qt6-snap-runtime/work.core24] /: Core24 qt6 only runtime

Scarlett Moore null at kde.org
Mon Feb 3 12:43:46 GMT 2025


Git commit 3304bc15aec5fe7c8f5403c73caadeb526a06fe1 by Scarlett Moore.
Committed on 03/02/2025 at 12:43.
Pushed by scarlettmoore into branch 'work.core24'.

Core24 qt6 only runtime

M  +96   -13   snapcraft.yaml

https://invent.kde.org/neon/snap-packaging/qt6-snap-runtime/-/commit/3304bc15aec5fe7c8f5403c73caadeb526a06fe1

diff --git a/snapcraft.yaml b/snapcraft.yaml
index a2c1b29..40417b8 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -1,5 +1,5 @@
-name: kde-qt6-core22
-base: core22
+name: kde-qt6-core24
+base: core24
 summary: Qt Framework
 description: |
   Qt is a cross-platform application development framework widely used
@@ -8,33 +8,116 @@ description: |
 
 grade: stable
 confinement: strict
-adopt-info: kde-qt6-core22-sdk
+adopt-info: kde-qt6-core24-sdk
 
 slots:
-    kde-qt6-core22:
-      interface: content
-      read:
-        - $SNAP
-
+  kde-qt6-core24-slot:
+    content: kde-qt6-core24-all
+    interface: content
+    read:
+      - "."
+  kde-qt6-core24:
+    content: kde-qt6-core24
+    interface: content
+    read:
+      - "."
+package-repositories:
+-   type: apt
+    components:
+    - main
+    suites:
+    - noble
+    key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
+    url: http://origin.archive.neon.kde.org/user
+    key-server: keyserver.ubuntu.com
 parts:
-  kde-qt6-core22-sdk:
+  kde-qt6-core24-sdk:
     plugin: nil
     build-snaps: [yq/latest/stable]
-    stage-snaps: [kde-qt6-core22-sdk/latest/stable]
+    stage-snaps: [kde-qt6-core24-sdk/latest/stable]
     override-stage: |
       craftctl default
-      craftctl set version=$(yq '.version' $CRAFT_STAGE/meta.kde-qt6-core22-sdk/snap.yaml)
+      craftctl set version=$(yq '.version' $CRAFT_STAGE/meta.kde-qt6-core24-sdk/snap.yaml)
+    stage:
+      - lib/*/bindtextdomain.so
+      - usr
+      - lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/*
+      - etc/xdg/*
+      - etc/qt6/*
+      - -usr/lib/*/libdrm*
+      - -usr/share/doc/libdrm*
+      - -usr/lib/*/cmake
+      - -usr/lib/*/qt6/mkspecs
+      - -usr/share/qt6/doc
+      - -usr/share/man
+      - -usr/share/doc
+      - -usr/share/ECM
+      - -usr/include
+      - -etc/emacs
+      - -etc/X11/Xreset.d/README
+      - -etc/fonts/conf.d/README
+      - -var/lib/aspell/README
+      - -var/lib/ispell/README
+      - -usr/share/dict/README.select-wordlist
+      - -usr/share/emacs
+      - -usr/share/fontconfig
+      - -usr/share/gdb
+      - -usr/share/glade
+      - -usr/share/gobject-introspection-1.0
+      - -usr/share/gst-plugins-base
+      - -usr/share/gtk-doc
+      - -usr/share/help
+      - -usr/share/installed-tests
+      - -usr/share/maven-repo
+      - -usr/bin/dpkg*
+      - -usr/bin/$CRAFT_ARCH_TRIPLET_BUILD_FOR-*
+      - -usr/bin/g-ir-*
+      - -usr/bin/glib-compile-*
+      - -usr/bin/glib-gettextize
+      - -usr/bin/glib-genmarshal
+      - -usr/bin/glib-mkenums
+      - -usr/bin/gtester*
+      - -usr/bin/gtk-builder-tool
+      - -usr/bin/gtk4-builder-tool
+      - -usr/bin/gtk-update-icon-cache
+      - -usr/bin/gtk4-update-icon-cache
+      - -usr/bin/h2ph
+      - -usr/bin/h2xs
+      - -usr/bin/make
+      - -usr/bin/make-first-existing-target
+      - -usr/bin/g++*
+      - -usr/bin/*-linux-gnu-g++*
+      - -usr/bin/gcc*
+      - -usr/bin/*-linux-gnu-gcc*
+      - -usr/bin/python*
+      - -usr/bin/vala*
+      - -usr/bin/vapi*
+      - -usr/lib/*vala*
+      - -usr/share/perl
+      - -usr/share/vala*
+      - -usr/share/gir*
+      - -usr/bin/meson
+      - -usr/bin/ninja
+      - -usr/lib/python3/dist-packages/meson*
+      - -usr/share/devhelp/books
     override-prime: |
       set -eux
       craftctl default
       cd $CRAFT_PRIME
       find . -type f,l -name "*.h" -exec bash -c "rm -f {}*" \;
+      find . -type f,l -name "*.a" -exec bash -c "rm -f {}*" \;
+      find . -type f,l -name "*.cpp" -exec bash -c "rm -f {}*" \;
+      find . -type f,l -name "*.c" -exec bash -c "rm -f {}*" \;
+      find . -type f,l -name "*.hpp" -exec bash -c "rm -f {}*" \;
+      find . -type f,l -name "*.pc" -exec bash -c "rm -f {}*" \;
   command-chain:
     source: https://invent.kde.org/neon/snap-packaging/snapcraft-desktop-integration.git
     source-type: git
     source-subdir: kde-neon-6
+    source-branch: work.core24
     plugin: make
     make-parameters:
-      - PLATFORM_PLUG=$SNAPCRAFT_PROJECT_NAME
-        stage-packages:
+      - PLATFORM_PLUG=kf6-core24
+      - WITH_GRAPHICS=false
+    stage-packages:
       - tox


More information about the Neon-commits mailing list