[neon/neon-packaging/neochat/Neon/release] /: add snap package

Jonathan Riddell null at kde.org
Tue Jun 1 16:29:49 BST 2021


Git commit c9138de43c99c8e2acffd014d081724fe885f67e by Jonathan Riddell.
Committed on 01/06/2021 at 15:29.
Pushed by jriddell into branch 'Neon/release'.

add snap package

A  +100  -0    snapcraft.yaml

https://invent.kde.org/neon/neon-packaging/neochat/commit/c9138de43c99c8e2acffd014d081724fe885f67e

diff --git a/snapcraft.yaml b/snapcraft.yaml
new file mode 100644
index 0000000..86a531d
--- /dev/null
+++ b/snapcraft.yaml
@@ -0,0 +1,100 @@
+---
+name: neochat
+confinement: strict
+grade: stable
+base: core20
+adopt-info: neochat
+apps:
+    kblocks:
+        extensions:
+        - kde-neon
+        common-id: org.kde.neochat
+        command: usr/bin/neochat
+        plugs:
+        - home
+        - network
+        - network-bind
+        - audio-playback
+slots:
+    session-dbus-interface:
+        interface: dbus
+        name: org.kde.neochat
+        bus: session
+package-repositories:
+-   type: apt
+    components:
+    - main
+    suites:
+    - focal
+    key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
+    url: http://origin.archive.neon.kde.org/user
+    key-server: keyserver.ubuntu.com
+parts:
+    libquotient:
+        plugin: cmake
+        source: https://github.com/quotient-im/libQuotient/archive/refs/tags/0.6.6.tar.gz
+        build-packages:
+          - qt5keychain-dev
+          - libkf5qqc2desktopstyle-dev
+        cmake-parameters:
+          - "-DKDE_INSTALL_USE_QT_SYS_PATHS=ON"
+          - "-DCMAKE_INSTALL_PREFIX=/usr"
+          - "-DCMAKE_BUILD_TYPE=Release"
+          - "-DENABLE_TESTING=OFF"
+          - "-DBUILD_TESTING=OFF"
+          - "-DKDE_SKIP_TEST_SETTINGS=ON"
+          - "-DCMAKE_FIND_ROOT_PATH=/usr\\;/root/stage\\;/snap/kde-frameworks-5-qt-5-15-core20-sdk/current"
+        filesets:
+            exclusion:
+            - "-usr/lib/*/cmake/*"
+            - "-usr/include/*"
+            - "-usr/share/ECM/*"
+            - "-usr/share/doc/*"
+            - "-usr/share/man/*"
+            - "-usr/share/icons/breeze-dark*"
+            - "-usr/bin/X11"
+            - "-usr/lib/gcc/x86_64-linux-gnu/6.0.0"
+            - "-usr/lib/aspell/*"
+        prime:
+        - "$exclusion"
+    neochat:
+        after:
+          - libquotient
+        plugin: cmake
+        build-packages:
+          - kquickimageeditor-dev
+          - kirigami2-dev
+          - libcmark-dev
+        stage-packages:
+          - qml-module-org-kde-kirigami2
+          - qml-module-org-kde-kitemmodels
+          - qml-module-org-kde-kquickimageeditor
+          - qml-module-org-kde-qqc2desktopstyle
+          - qml-module-qt-labs-platform
+          - qml-module-qt-labs-qmlmodels
+          - libqt5keychain1
+          - libcmark0.29.0
+        filesets:
+            exclusion:
+            - "-usr/lib/*/cmake/*"
+            - "-usr/include/*"
+            - "-usr/share/ECM/*"
+            - "-usr/share/doc/*"
+            - "-usr/share/man/*"
+            - "-usr/share/icons/breeze-dark*"
+            - "-usr/bin/X11"
+            - "-usr/lib/gcc/x86_64-linux-gnu/6.0.0"
+            - "-usr/lib/aspell/*"
+        prime:
+          - "$exclusion"
+        parse-info:
+          - usr/share/metainfo/org.kde.neochat.appdata.xml
+        source: https://download.kde.org/stable/neochat/1.2.0/neochat-1.2.0.tar.xz
+        cmake-parameters:
+          - "-DKDE_INSTALL_USE_QT_SYS_PATHS=ON"
+          - "-DCMAKE_INSTALL_PREFIX=/usr"
+          - "-DCMAKE_BUILD_TYPE=Release"
+          - "-DENABLE_TESTING=OFF"
+          - "-DBUILD_TESTING=OFF"
+          - "-DKDE_SKIP_TEST_SETTINGS=ON"
+          - "-DCMAKE_FIND_ROOT_PATH=/usr\\;/root/stage\\;/snap/kde-frameworks-5-qt-5-15-core20-sdk/current"


More information about the Neon-commits mailing list