-
Notifications
You must be signed in to change notification settings - Fork 4
/
snapcraft.yaml
186 lines (176 loc) · 6.74 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
name: epiphany
adopt-info: epiphany
summary: Web browser for GNOME
description: |
The web browser for GNOME, featuring tight integration with the desktop
and a simple and intuitive user interface that allows you to focus on your
web pages. If you’re looking for a simple, clean, beautiful view of the
web, this is the browser for you.
GNOME Web is often referred to by its code name, Epiphany.
grade: stable
confinement: strict
base: core22
# Launchpad doesn't recognize these fields yet
passthrough:
license: GPL-3.0+
title: GNOME Web
slots:
# for GtkApplication registration
epiphany:
interface: dbus
bus: session
name: org.gnome.Epiphany
layout:
/usr/share/epiphany:
bind: $SNAP/usr/share/epiphany
/usr/lib/$CRAFT_ARCH_TRIPLET/webkitgtk-6.0:
bind: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/webkitgtk-6.0
apps:
epiphany:
command: bin/snapcraft-preload $SNAP/usr/bin/epiphany
extensions: [ gnome ]
plugs:
- audio-playback
- audio-record
- browser-support
- camera
- cups
- hardware-observe
- home
- hostname-control
- mount-observe
- network
- network-status
- opengl
- password-manager-service
- removable-media
- screen-inhibit-control
- upower-observe
desktop: usr/share/applications/org.gnome.Epiphany.desktop
environment:
GSETTINGS_SCHEMA_DIR: $SNAP/usr/share/glib-2.0/schemas
GIO_MODULE_DIR: $SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET/gio/modules/
LD_LIBRARY_PATH: ${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/epiphany:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/blas:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/lapack
parts:
# epiphany needs access to /dev/shm/
snapcraft-preload:
source: https://github.com/sergiusens/snapcraft-preload.git
source-depth: 1
# ext:updatesnap
# version-format:
# allow-neither-tag-nor-branch: true
plugin: cmake
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=
build-packages:
- on amd64:
- gcc-multilib
- g++-multilib
gcr:
source: https://gitlab.gnome.org/GNOME/gcr.git
source-depth: 1
source-tag: '4.3.0'
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Dintrospection=true
- -Dgtk_doc=false
build-environment:
- PATH: /snap/gnome-42-2204-sdk/current/usr/bin${PATH:+:$PATH}
- XDG_DATA_DIRS: $SNAPCRAFT_STAGE/usr/share:/snap/gnome-42-2204-sdk/current/usr/share:/usr/share${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}
- LD_LIBRARY_PATH: /snap/gnome-42-2204-sdk/current/lib/$CRAFT_ARCH_TRIPLET:/snap/gnome-42-2204-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET:/snap/gnome-42-2204-sdk/current/usr/lib:/snap/gnome-42-2204-sdk/current/usr/lib/vala-current:/snap/gnome-42-2204-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/pulseaudio${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
- PKG_CONFIG_PATH: /snap/gnome-42-2204-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/pkgconfig:/snap/gnome-42-2204-sdk/current/usr/lib/pkgconfig:/snap/gnome-42-2204-sdk/current/usr/share/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}
- GETTEXTDATADIRS: /snap/gnome-42-2204-sdk/current/usr/share/gettext-current${GETTEXTDATADIRS:+:$GETTEXTDATADIRS}
- GDK_PIXBUF_MODULE_FILE: /snap/gnome-42-2204-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/gdk-pixbuf-current/loaders.cache
- ACLOCAL_PATH: /snap/gnome-42-2204-sdk/current/usr/share/aclocal${ACLOCAL_PATH:+:$ACLOCAL_PATH}
- PYTHONPATH: /snap/gnome-42-2204-sdk/current/usr/lib/python3.10:/snap/gnome-42-2204-sdk/current/usr/lib/python3/dist-packages:/snap/gnome-42-2204-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/gobject-introspection${PYTHONPATH:+:$PYTHONPATH}
build-snaps: [ gnome-42-2204-sdk ]
build-packages:
- libgpg-error-dev
epiphany:
after: [snapcraft-preload, gcr]
source: https://gitlab.gnome.org/GNOME/epiphany.git
source-type: git
source-tag: '46.5'
source-depth: 1
# ext:updatesnap
# version-format:
# lower-than: '47'
# no-9x-revisions: true
plugin: meson
parse-info: [usr/share/metainfo/org.gnome.Epiphany.appdata.xml]
meson-parameters:
- --prefix=/usr
override-build: |
craftctl default
sed -i 's|Icon=org.gnome.Epiphany|Icon=${SNAP}/meta/gui/org.gnome.Epiphany.svg|g' $CRAFT_PART_INSTALL/usr/share/applications/org.gnome.Epiphany.desktop
mkdir -p $CRAFT_PART_INSTALL/meta/gui/
cp $CRAFT_PART_SRC/data/icons/hicolor/scalable/apps/org.gnome.Epiphany.svg $CRAFT_PART_INSTALL/meta/gui/
build-packages:
- libarchive-dev
- libxml-parser-perl
- libxslt1-dev
- libx11-dev
- nettle-dev
- python-gi-dev
- libgirepository1.0-dev
- libgstreamer1.0-dev
- libwebkitgtk-6.0-dev
stage-packages:
- gstreamer1.0-clutter-3.0
- gstreamer1.0-gl
- gstreamer1.0-gtk3
- gstreamer1.0-libav
- gstreamer1.0-plugins-base
- gstreamer1.0-plugins-good
- gstreamer1.0-plugins-bad
- gstreamer1.0-pulseaudio
- libarchive13
- libglu1-mesa
- libgpm2
- libjavascriptcoregtk-4.0-18
- libnettle8
- libslang2
- libsphinxbase3
- libwebkitgtk-6.0-4
stage:
- -usr/bin/gtk-update-icon-cache
- -usr/lib/*/gtk-3.0/3.0.0/printbackends/libprintbackend*.so*
- -usr/lib/*/libfribidi.so.0
- -usr/lib/*/libatk-1.0.so.0
- -usr/lib/*/libatk-bridge-2.0.so.0
- -usr/lib/*/libatspi.so.0
- -usr/lib/*/libgdk-3.so.0
- -usr/lib/*/libgio-2.0.so*
- -usr/lib/*/libglib-2.0.so*
- -usr/lib/*/libgmodule-2.0.so*
- -usr/lib/*/libgobject-2.0.so*
- -usr/lib/*/libgthread-2.0.so*
- -usr/lib/*/libgtk-3.so.0
- -usr/lib/*/libgtk-3-0/gtk-query-immodules-3.0
- -usr/lib/*/libjson-glib-1.0.so*
- -usr/lib/*/libpango*.so*
- -usr/lib/*/libharfbuzz*.so*
- -usr/lib/*/libsecret-1.so.*
- -usr/share/glib-2.0/schemas/org.gtk*
# Find files provided by the base and platform snap and ensure they aren't
# duplicated in this snap
cleanup:
after: [epiphany]
plugin: nil
# ext:updatesnap
# version-format:
# ignore: true
build-snaps: [core22, gtk-common-themes, gnome-42-2204]
override-prime: |
set -eux
for snap in "core22" "gtk-common-themes" "gnome-42-2204"; do
cd "/snap/$snap/current" && find . -type f,l -name *.so.* -exec rm -f "$CRAFT_PRIME/{}" \;
done
cd $CRAFT_PRIME
rm -f usr/lib/$CRAFT_ARCH_TRIPLET/webkit2gtk-4.0
rm -f usr/lib/$CRAFT_ARCH_TRIPLET/webkit2gtk-4.1
ln -s ../../../gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET/webkit2gtk-4.0 usr/lib/$CRAFT_ARCH_TRIPLET/
ln -s ../../../gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET/webkit2gtk-4.1 usr/lib/$CRAFT_ARCH_TRIPLET/