forked from johnfactotum/foliate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
69 lines (68 loc) · 2.13 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: foliate
grade: stable
adopt-info: foliate
license: GPL-3.0+
base: core22
confinement: strict
compression: lzo
architectures:
- build-on: amd64
- build-on: arm64
- build-on: armhf
layout:
/usr/lib/$CRAFT_ARCH_TRIPLET/webkitgtk-6.0:
bind: $SNAP/webkitgtk-platform/usr/lib/$CRAFT_ARCH_TRIPLET/webkitgtk-6.0
slots:
foliate:
interface: dbus
bus: session
name: com.github.johnfactotum.Foliate
plugs:
webkitgtk-6-gnome-2204:
interface: content
target: $SNAP/webkitgtk-platform
default-provider: webkitgtk-6-gnome-2204
apps:
foliate:
command: usr/bin/foliate
extensions:
- gnome
plugs:
- home
- removable-media
- network
- network-status
- unity7
- audio-playback
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:
foliate:
plugin: meson
source: https://github.com/johnfactotum/foliate.git
source-tag: '3.1.1'
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: |
craftctl default
sed -i '1c#!/snap/foliate/current/gnome-platform/usr/bin/gjs -m' src/main.js
build-packages:
- xmlstarlet
build-snaps:
- webkitgtk-6-gnome-2204-sdk/latest/stable
parse-info:
- 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.*