[neon/snap-packaging/kwrite-snap] /: snapcraft: Initial packaging.
Scarlett Moore
null at kde.org
Thu Jun 13 12:53:21 BST 2024
Git commit 26f58de1c73e68b6ab299e4ad941a0601b3e1d1a by Scarlett Moore.
Committed on 13/06/2024 at 11:51.
Pushed by scarlettmoore into branch 'master'.
snapcraft: Initial packaging.
A +8 -0 debian/.gitlab-ci-neon.yml
A +85 -0 snapcraft.yaml
https://invent.kde.org/neon/snap-packaging/kwrite-snap/-/commit/26f58de1c73e68b6ab299e4ad941a0601b3e1d1a
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..76d4172
--- /dev/null
+++ b/snapcraft.yaml
@@ -0,0 +1,85 @@
+# SPDX-FileCopyrightText: 2024 Scarlett Moore <sgmoore at kde.org>
+#
+# SPDX-License-Identifier: CC0-1.0
+---
+name: kwrite
+confinement: strict
+grade: stable
+base: core22
+adopt-info: kwrite
+apps:
+ kwrite:
+ extensions:
+ - kde-neon-6
+ common-id: org.kde.kwrite.desktop
+ desktop: usr/share/applications/org.kde.kwrite.desktop
+ command: usr/bin/kwrite
+ plugs:
+ - home
+ - cups
+ - removable-media
+ command-chain:
+ - snap/command-chain/desktop-launch6
+slots:
+ session-dbus-interface:
+ interface: dbus
+ name: org.kde.kwrite
+ 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:
+ kwrite:
+ parse-info:
+ - usr/share/metainfo/org.kde.kwrite.appdata.xml
+ plugin: cmake
+ source: https://invent.kde.org/utilities/kate.git
+ source-branch: release/24.05
+ cmake-parameters:
+ - -DCMAKE_INSTALL_PREFIX=/usr
+ - -DCMAKE_BUILD_TYPE=Release
+ - -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_BUILD_FOR
+ - --log-level=STATUS
+ - -DCMAKE_LIBRARY_PATH=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
+ prime:
+ - -usr/lib/*/cmake/*
+ - -usr/include/*
+ - -usr/share/ECM/*
+ - -usr/share/man/*
+ - -usr/share/icons/breeze-dark*
+ - -usr/bin/X11
+ - -usr/lib/gcc/$CRAFT_ARCH_TRIPLET_BUILD_FOR/6.0.0
+ - -usr/lib/aspell/*
+ - -usr/share/lintian
+ - -usr/bin/kate
+ cleanup:
+ after:
+ - kwrite
+ 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