From 750690dd3b7dec2aa98aceda518322f2b0392cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A6=B8=E0=A7=8C=E0=A6=AE=E0=A7=8D=E0=A6=AF=E0=A6=A6?= =?UTF-8?q?=E0=A7=80=E0=A6=AA=20=E0=A6=98=E0=A7=8B=E0=A6=B7=28=E0=A4=B8?= =?UTF-8?q?=E0=A5=8C=E0=A4=AE=E0=A5=8D=E0=A4=AF=E0=A4=A6=E0=A5=80=E0=A4=AA?= =?UTF-8?q?=E0=A4=83=20=E0=A4=98=E0=A5=8B=E0=A4=B7=E0=A4=83=29?= <72045785+soumyaDghosh@users.noreply.github.com> Date: Sun, 15 Oct 2023 18:31:37 +0530 Subject: [PATCH] Fixes Snap (#1097) * added PKG_CONFIG_PATH for webkitgtk * added SPEECHD_ADRESS (copied from firefox) * added speechd to stage packages --- snapcraft.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/snapcraft.yaml b/snapcraft.yaml index 10051c68..cd2f2a68 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -35,6 +35,7 @@ apps: desktop: usr/share/applications/com.github.johnfactotum.Foliate.desktop common-id: com.github.johnfactotum.Foliate environment: + SPEECHD_ADDRESS: "unix_socket:/run/user/$SNAP_UID/speech-dispatcher/speechd.sock" LD_LIBRARY_PATH: $SNAP/webkitgtk-platform/usr/lib:$SNAP/webkitgtk-platform/usr/lib/$CRAFT_ARCH_TRIPLET:$LD_LIBRARY_PATH GI_TYPELIB_PATH: $SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET/girepository-1.0:$SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET/gjs/girepository-1.0:$SNAP/webkitgtk-platform/usr/lib/$CRAFT_ARCH_TRIPLET/girepository-1.0 parts: @@ -42,6 +43,8 @@ parts: plugin: meson source: https://github.com/johnfactotum/foliate.git source-branch: gtk4 + build-environment: + - PKG_CONFIG_PATH: /snap/webkitgtk-6-gnome-2204-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/pkgconfig:$PKG_CONFIG_PATH meson-parameters: - --prefix=/snap/foliate/current/usr override-pull: | @@ -55,4 +58,10 @@ parts: - usr/share/metainfo/com.github.johnfactotum.Foliate.metainfo.xml organize: snap/foliate/current/usr: usr + deps: + plugin: nil + stage-packages: + - libspeechd2 # probably necessary, need testing + prime: + - usr/lib/*/libspeechd.so.*