-
-
Notifications
You must be signed in to change notification settings - Fork 229
/
Copy pathsnapcraft.yaml
168 lines (158 loc) · 5.12 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
name: planify
base: core24
adopt-info: planify
grade: stable
confinement: strict
compression: lzo
contact: alainmh23@gmail.com
license: GPL-3.0
layout:
/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/webkitgtk-6.0:
bind: $SNAP/webkitgtk-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/webkitgtk-6.0
parts:
gxml:
source: https://gitlab.gnome.org/GNOME/gxml.git
source-depth: 1
plugin: meson
build-packages:
- valadoc
override-pull: |
craftctl default
sed -i "s|--doclet=devhelp|--doclet=/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}/valadoc-0.56/doclets/devhelp/libdoclet.so|" docs/meson.build
sed -i s#@prefix@/include#$CRAFT_STAGE/usr/include/gxml-0.20#g gxml/gxml.pc.in
sed -i s#@prefix@#$CRAFT_STAGE/usr#g gxml/gxml.pc.in
meson-parameters:
- --prefix=/usr
- -Ddocs=false
prime:
- -usr/share/doc
- -usr/lib/*/pkgconfig
- -usr/include
organize:
usr/include/gxml-0.20: usr/include
granite:
plugin: meson
source: https://github.com/elementary/granite.git
source-tag: '7.2.0'
source-depth: 1
meson-parameters:
- --prefix=/usr
build-packages:
- intltool
prime:
- -usr/include
- -usr/lib/*/pkgconfig
libical:
plugin: cmake
source: https://github.com/libical/libical.git
source-tag: 'v3.0.17'
source-depth: 1
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_INSTALL_LIBDIR=/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_SHARED_LIBS=ON
- -DGOBJECT_INTROSPECTION=true
- -DICAL_GLIB_VAPI=true
- -DICAL_GLIB=true
- -DICAL_BUILD_DOCS=false
- -DWITH_CXX_BINDINGS=false
prime:
- -usr/include
- -usr/lib/*/cmake
- -usr/libexec
- -usr/lib/*/pkgconfig
evolution-data-server:
after: [libical]
plugin: cmake
source: https://download.gnome.org/sources/evolution-data-server/3.50/evolution-data-server-3.50.3.tar.xz
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/snap/planify/current/usr
- -DCMAKE_BUILD_TYPE=Release
- -DENABLE_FILE_LOCKING=fcntl
- -DENABLE_DOT_LOCKING=OFF
- -DENABLE_OAUTH2=ON
- -DENABLE_CANBERRA=OFF
- -DENABLE_GTK=ON
- -DENABLE_UOA=OFF
- -DENABLE_GOA=OFF
- -DENABLE_GOOGLE=OFF
- -DENABLE_EXAMPLES=OFF
- -DENABLE_INTROSPECTION=ON
- -DENABLE_VALA_BINDINGS=ON
- -DENABLE_INSTALLED_TESTS=OFF
- -DENABLE_GTK_DOC=OFF
- -DWITH_PRIVATE_DOCS=OFF
- -DWITH_PHONENUMBER=OFF
- -DWITH_SYSTEMDUSERUNITDIR=OFF
- -DWITH_LIBDB=OFF
- -DWITH_OPENLDAP=OFF
- -DENABLE_WEATHER=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
build-packages:
- libkrb5-dev
- gperf
- libnss3-dev
- libnspr4-dev
- librest-dev
- libxml2-dev
organize:
snap/planify/current: .
usr/include/evolution-data-server: usr/include
prime:
- -usr/lib/*/pkgconfig
- -usr/include
- -usr/lib/*/evolution-data-server/*-backends
- -usr/libexec
- -usr/share/dbus-1/services
planify:
after: [granite, evolution-data-server, libical, gxml]
plugin: meson
source: https://github.com/alainm23/planify.git
#source-tag: '4.5'
source-depth: 1
build-environment:
- PKG_CONFIG_PATH: /snap/webkitgtk-6-gnome-2204-sdk/current/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}/pkgconfig:${PKG_CONFIG_PATH}
- LD_LIBRARY_PATH: ${CRAFT_STAGE}/usr/lib:${CRAFT_STAGE}/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}:${CRAFT_STAGE}/usr/lib/evolution-data-server:${LD_LIBRARY_PATH}
meson-parameters:
- --prefix=/snap/planify/current/usr
build-snaps:
- webkitgtk-6-gnome-2204-sdk
parse-info: [usr/share/appdata/io.github.alainm23.planify.appdata.xml]
organize:
snap/planify/current: .
slots:
planify:
interface: dbus
bus: session
name: io.github.alainm23.planify
plugs:
webkitgtk-6-gnome-2204:
interface: content
target: $SNAP/webkitgtk-platform
default-provider: webkitgtk-6-gnome-2204
apps:
planify:
command: usr/bin/io.github.alainm23.planify
desktop: usr/share/applications/io.github.alainm23.planify.desktop
environment: &environment
LD_LIBRARY_PATH: $SNAP/webkitgtk-platform/usr/lib:$SNAP/webkitgtk-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$LD_LIBRARY_PATH
GI_TYPELIB_PATH: ${SNAP}/gnome-platform/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}/girepository-1.0:${SNAP}/gnome-platform/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}/gjs/girepository-1.0:${SNAP}/webkitgtk-platform/usr/lib/${CRAFT_ARCH_TRIPLET_BUILD_FOR}/girepository-1.0
extensions: [gnome]
plugs: &plugs
- home
- calendar-service
- accounts-service
- contacts-service
- network
- network-status
- unity7
quick-add:
command: usr/bin/io.github.alainm23.planify.quick-add
extensions: [gnome]
environment: *environment
plugs: *plugs