[neon/snap-packaging/elisa-snap] /: Copy snap here so we don't have to wait for MRs

Scarlett Moore null at kde.org
Thu Jun 13 16:02:33 BST 2024


Git commit 991a775b9f883e741b21e2ab8c5fcfe0cf32346d by Scarlett Moore.
Committed on 13/06/2024 at 15:01.
Pushed by scarlettmoore into branch 'master'.

Copy snap here so we don't have to wait for MRs

A  +8    -0    debian/.gitlab-ci-neon.yml
A  +99   -0    snapcraft.yaml

https://invent.kde.org/neon/snap-packaging/elisa-snap/-/commit/991a775b9f883e741b21e2ab8c5fcfe0cf32346d

diff --git a/debian/.gitlab-ci-neon.yml b/debian/.gitlab-ci-neon.yml
new file mode 100644
index 0000000..ab2589a
--- /dev/null
+++ b/debian/.gitlab-ci-neon.yml
@@ -0,0 +1,8 @@
+# SPDX-FileCopyrightText: none
+# SPDX-License-Identifier: CC0-1.0
+
+include:
+  - project: sysadmin/ci-utilities
+    file:
+#      - /gitlab-templates/snap-snapcraft-destructive.yml
+      - /gitlab-templates/snap-snapcraft-lxd.yml
diff --git a/snapcraft.yaml b/snapcraft.yaml
new file mode 100644
index 0000000..632a6c2
--- /dev/null
+++ b/snapcraft.yaml
@@ -0,0 +1,99 @@
+# SPDX-FileCopyrightText: 2024 Scarlett Moore <sgmoore at kde.org>
+#
+# SPDX-License-Identifier: CC0-1.0
+---
+name: elisa
+confinement: strict
+grade: stable
+base: core22
+adopt-info: elisa
+icon: $CRAFT_PROJECT_DIR/logo.png
+apps:
+    elisa:
+        extensions:
+        - kde-neon-6
+        common-id: org.kde.elisa.desktop
+        desktop: usr/share/applications/org.kde.elisa.desktop
+        command: usr/bin/elisa
+        plugs:
+        - home
+        - removable-media
+        - mpris
+        - alsa
+        command-chain:
+        - snap/command-chain/desktop-launch6
+slots:
+    session-dbus-interface:
+        interface: dbus
+        name: org.kde.elisa
+        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:
+    elisa:
+        parse-info:
+        - usr/share/metainfo/org.kde.elisa.appdata.xml
+        plugin: cmake
+        build-packages:
+        - libvlc-dev
+        stage-packages:
+        - gstreamer1.0-alsa
+        - gstreamer1.0-libav
+        - gstreamer1.0-plugins-ugly
+        - gstreamer1.0-plugins-good
+        - gstreamer1.0-plugins-base
+        - gstreamer1.0-plugins-bad
+        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"
+    override-build: |
+            craftctl default
+
+            sed -i "${CRAFT_PART_INSTALL}/usr/share/applications/org.kde.elisa.desktop" -e 's|Icon=elisa$|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/elisa.svg|'
+    cleanup:
+        after:
+        - elisa
+        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