-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsnapcraft.yaml
215 lines (204 loc) · 6.81 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
name: gnome-contacts
adopt-info: gnome-contacts
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict
base: core24
layout:
/usr/lib/$CRAFT_ARCH_TRIPLET/folks/26/backends:
symlink: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/folks/26/backends
/usr/lib/evolution:
symlink: $SNAP/usr/lib/evolution
/usr/lib/evolution-data-server:
symlink: $SNAP/usr/lib/evolution-data-server
slots:
# for GtkApplication registration
gnome-contacts:
interface: dbus
bus: session
name: org.gnome.Contacts
apps:
gnome-contacts:
command: usr/bin/gnome-contacts
extensions: [gnome]
desktop: usr/share/applications/org.gnome.Contacts.desktop
common-id: org.gnome.Contacts.desktop
plugs:
- browser-support
#- camera
- home
- network
- accounts-service
- contacts-service
#environment:
# DISABLE_WAYLAND: 'true'
parts:
# required because we need a version with libsoup3
geocode:
source: https://gitlab.gnome.org/GNOME/geocode-glib.git
source-tag: '3.26.4'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Denable-installed-tests=false
- -Denable-introspection=true
- -Denable-gtk-doc=false
- -Dsoup2=false
build-packages:
- libnghttp2-dev
# required because we need a version with libsoup3
libgweather:
after: [ geocode ]
source: https://gitlab.gnome.org/GNOME/libgweather.git
source-tag: '4.4.4'
source-depth: 1
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Dintrospection=true
- -Dgtk_doc=false
- -Dtests=false
- -Dsoup2=false
override-pull: |
craftctl default
sed -i 's#CRAFT_ENV_REPLACE#/usr/lib:/usr/lib/$CRAFT_ARCH_TRIPLET#' $CRAFT_PART_SRC/data/meson.build
build-packages:
- gir1.2-glib-2.0
libical:
source: https://github.com/libical/libical.git
source-tag: 'v3.0.19'
source-depth: 1
plugin: cmake
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -Doptimization=3
- -Ddebug=true
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_LIBDIR=lib
- -DBUILD_SHARED_LIBS:BOOL=ON
- -DICAL_GLIB=true
- -DGOBJECT_INTROSPECTION=true
- -DICAL_GLIB_VAPI=true
- -DICAL_BUILD_DOCS=false
geoclue:
source: https://gitlab.freedesktop.org/geoclue/geoclue.git
source-tag: '2.7.2'
source-depth: 1
after: [ geocode ]
plugin: meson
meson-parameters:
- --prefix=/usr
- -Doptimization=3
- -Ddebug=true
- -Denable-backend=false
- -Dlibgeoclue=true
- -Dintrospection=true
- -Dgtk-doc=false
evolution-data-server:
after: [ libical, geoclue, libgweather ]
source: https://gitlab.gnome.org/GNOME/evolution-data-server.git
source-tag: '3.55.1'
source-depth: 1
plugin: cmake
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -Doptimization=3
- -DENABLE_CANBERRA=OFF
- -DENABLE_GOA=ON
- -DENABLE_DOT_LOCKING=OFF
- -DENABLE_FILE_LOCKING=fcntl
- -DENABLE_GTK=OFF
- -DENABLE_GTK4=ON
- -DENABLE_GOOGLE=OFF
- -DENABLE_VALA_BINDINGS=ON
- -DENABLE_WEATHER=OFF
- -DWITH_OPENLDAP=OFF
- -DWITH_LIBDB=OFF
- -DENABLE_INTROSPECTION=ON
- -DENABLE_INSTALLED_TESTS=OFF
- -DENABLE_GTK_DOC=OFF
- -DENABLE_EXAMPLES=OFF
- -DENABLE_OAUTH2_WEBKITGTK4=OFF
override-pull: |
craftctl default
sed -i "s|#include \"nss.h\"|#include \"nss/nss.h\"|g" src/camel/camel.c
sed -i "s|#include <nss.h>|#include <nss/nss.h>|g" src/libedataserverui/e-certificate-widget.c
override-stage: |
craftctl default
for PCFILE in "libebook-contacts-1.2.pc" "libedataserver-1.2.pc" "libedataserverui4-1.0.pc" "camel-1.2.pc" "evolution-data-server-1.2.pc" "libebackend-1.2.pc" "libecal-2.0.pc" "libebook-1.2.pc" "libedata-cal-2.0.pc" "libedata-book-1.2.pc"; do
sed -i "s#prefix=$CRAFT_STAGE/usr#prefix=$CRAFT_STAGE#g" $CRAFT_STAGE/usr/lib/pkgconfig/$PCFILE
sed -i "s#includedir=/usr/include#includedir=\${prefix}/usr/include#g" $CRAFT_STAGE/usr/lib/pkgconfig/$PCFILE
sed -i "s#libdir=/usr/lib#libdir=\${prefix}/usr/lib#g" $CRAFT_STAGE/usr/lib/pkgconfig/$PCFILE
sed -i "s#datarootdir=/usr/lib#datarootdir=\${prefix}/usr/lib#g" $CRAFT_STAGE/usr/lib/pkgconfig/$PCFILE
sed -i "s#datadir=/usr/lib#datadir=\${prefix}/usr/lib#g" $CRAFT_STAGE/usr/lib/pkgconfig/$PCFILE
sed -i "s#privincludedir=/usr/include/#privincludedir=\${prefix}/usr/include/#g" $CRAFT_STAGE/usr/lib/pkgconfig/$PCFILE
done
cp $CRAFT_STAGE/usr/lib/evolution-data-server/libedbus-private.so $CRAFT_STAGE/usr/lib/
build-packages:
- libkrb5-dev
- gperf
- libgoa-1.0-dev
libfolks:
source: https://gitlab.gnome.org/GNOME/folks.git
source-tag: '0.15.9'
source-depth: 1
# ext:updatesnap
# version-format:
# ignore-odd-minor: true
after: [ evolution-data-server ]
plugin: meson
meson-parameters:
- --prefix=/usr
- --buildtype=release
- -Deds_backend=true
- -Dinstalled_tests=false
- -Ddocs=false
- -Dtelepathy_backend=false
- -Dinspect_tool=false
- -Dimport_tool=false
- -Dtests=false
- -Dprofiling=false
build-packages:
- libreadline-dev
gnome-contacts:
source: https://gitlab.gnome.org/GNOME/gnome-contacts.git
source-type: git
source-tag: '47.1.1'
source-depth: 1
after: [ libfolks ]
plugin: meson
meson-parameters:
- --prefix=/usr
- --buildtype=release
- -Dcamera=false # seems to be not wired... https://gitlab.gnome.org/GNOME/gnome-contacts/-/issues/236
- -Ddocs=false
- -Dmanpage=false
- -Dprofile=default
parse-info: [usr/share/metainfo/org.gnome.Contacts.appdata.xml]
organize:
snap/gnome-contacts/current/usr: usr
override-pull: |
craftctl default
craftctl set version=$(git describe --tags --abbrev=10)
override-build: |
sed -i 's|=org.gnome.Contacts$|=${SNAP}/meta/gui/org.gnome.Contacts.svg|g' $CRAFT_PART_SRC/data/org.gnome.Contacts.desktop.in.in
craftctl default
mkdir -p $CRAFT_PART_INSTALL/meta/gui/
cp $CRAFT_PART_SRC/data/icons/hicolor/scalable/apps/org.gnome.Contacts.svg $CRAFT_PART_INSTALL/meta/gui/
cp data/org.gnome.Contacts.desktop $CRAFT_PART_INSTALL/meta/gui/
build-packages:
- libportal-dev
- libqrencode-dev
stage-packages:
- libqrencode4
cleanup:
after: [ gnome-contacts ]
plugin: nil
build-snaps: [core24, gtk-common-themes, gnome-46-2404]
override-prime: |
set -eux
for snap in "core24" "gtk-common-themes" "gnome-46-2404"; do
cd "/snap/$snap/current" && find . -type f,l -name *.so.* -exec rm -f "$CRAFT_PRIME/{}" \;
done