[neon/snap-packaging/gwenview-snap] /: Copy snap here so we don't have to wait on MRs
Scarlett Moore
null at kde.org
Thu Jun 13 15:53:33 BST 2024
Git commit 6e5de5b73c2ebfcf8390d8f7ee05d5921c47d42e by Scarlett Moore.
Committed on 13/06/2024 at 14:52.
Pushed by scarlettmoore into branch 'master'.
Copy snap here so we don't have to wait on MRs
A +8 -0 debian/.gitlab-ci-neon.yml
A +166 -0 snapcraft.yaml
https://invent.kde.org/neon/snap-packaging/gwenview-snap/-/commit/6e5de5b73c2ebfcf8390d8f7ee05d5921c47d42e
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..8bfdb89
--- /dev/null
+++ b/snapcraft.yaml
@@ -0,0 +1,166 @@
+# SPDX-FileCopyrightText: 2024 Scarlett Moore <sgmoore at kde.org>
+#
+# SPDX-License-Identifier: CC0-1.0
+---
+name: gwenview
+confinement: strict
+grade: stable
+base: core22
+adopt-info: gwenview
+apps:
+ gwenview:
+ extensions:
+ - kde-neon-6
+ common-id: org.kde.gwenview.desktop
+ desktop: usr/share/applications/org.kde.gwenview.desktop
+ command: usr/bin/gwenview
+ plugs:
+ - home
+ - cups
+ - removable-media
+ command-chain:
+ - snap/command-chain/desktop-launch6
+slots:
+ session-dbus-interface:
+ interface: dbus
+ name: org.kde.gwenview
+ 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:
+ kcolorpicker:
+ plugin: cmake
+ source: https://github.com/ksnip/kColorPicker.git
+ source-tag: v0.3.1
+ 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
+ kimageannotator:
+ after:
+ - kcolorpicker
+ plugin: cmake
+ source: https://github.com/ksnip/kImageAnnotator.git
+ source-tag: v0.7.1
+ 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
+ libkdcraw:
+ plugin: cmake
+ source: https://invent.kde.org/graphics/libkdcraw.git
+ source-branch: release/24.05
+ 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
+ gwenview:
+ after:
+ - kimageannotator
+ - libkdcraw
+ parse-info:
+ - usr/share/metainfo/org.kde.gwenview.appdata.xml
+ plugin: cmake
+ source: .
+ source-type: local
+ build-packages:
+ - libwayland-dev
+ - libxkbcommon-dev
+ - wayland-protocols
+ - libtiff-dev
+ - libpng-dev
+ - libexiv2-dev
+ stage-packages:
+ - libwayland-client0
+ - libxkbcommon0
+ - wayland-protocols
+ - libtiff5
+ - libpng16-16
+ - libexiv2-27
+ 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:
+ - gwenview
+ 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