From ed9c8fc5713100372d1c2f5c6df64fb2b199f8f5 Mon Sep 17 00:00:00 2001 From: sameer sharma Date: Wed, 24 Apr 2024 10:00:16 +0530 Subject: [PATCH] Add snap packaging recipe --- snap/snapcraft.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..04ad7e3 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,36 @@ +name: spedread +base: core22 +adopt-info: spedread +grade: stable +confinement: strict +compression: lzo +architectures: + - build-on: amd64 + - build-on: armhf + - build-on: arm64 + +slots: + spedread: + interface: dbus + bus: session + name: com.github.Darazaki.Spedread + +apps: + spedread: + command: usr/bin/spedread + extensions: [gnome] + common-id: com.github.Darazaki.Spedread + desktop: usr/share/applications/com.github.Darazaki.Spedread.desktop + +parts: + spedread: + source: . + source-tag: v2.4.7-fixed + plugin: meson + parse-info: [usr/share/appdata/com.github.Darazaki.Spedread.appdata.xml] + meson-parameters: + - -Dprefix=/usr + - -Dadw_1_2=true + override-pull: | + craftctl default + sed -e 's|Icon=com.github.Darazaki.Spedread|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/com.github.Darazaki.Spedread.svg|' -i data/com.github.Darazaki.Spedread.desktop.in