org.gnome.Evolution-master.json 10.9 KB
Newer Older
Milan Crha's avatar
Milan Crha committed
1 2 3
{
	"app-id": "org.gnome.Evolution",
	"runtime": "org.gnome.Platform",
4
	"runtime-version": "3.36",
Milan Crha's avatar
Milan Crha committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
	"sdk": "org.gnome.Sdk",
	"command": "evolution",
	"rename-icon": "evolution",
	"copy-icon": true,
	"branch": "master",
	"desktop-file-name-suffix": " (Development)",
	"tags": [ "devel" ],
	"build-options" : {
		"cflags": "-O2 -g -Wno-deprecated-declarations",
		"cxxflags": "-O2 -g -Wno-deprecated-declarations"
	},
	"cleanup": [
		"/include",
		"/lib/pkgconfig",
		"/share/pkgconfig",
		"/share/aclocal",
		"*.la",
		"*.a"
	],
	"finish-args": [
		"--share=ipc",
26 27
		"--share=network",
		"--socket=x11",
Milan Crha's avatar
Milan Crha committed
28
		"--socket=wayland",
29
		"--socket=pulseaudio",
30
		"--device=dri",
31
		"--filesystem=~/.gnupg:rw",
32 33 34 35
		"--filesystem=xdg-run/dconf",
		"--filesystem=~/.config/dconf:ro",
		"--env=DCONF_USER_CONFIG_DIR=.config/dconf",
		"--talk-name=ca.desrt.dconf",
Milan Crha's avatar
Milan Crha committed
36
		"--talk-name=org.freedesktop.Notifications",
37
		"--talk-name=org.freedesktop.secrets",
38
		"--talk-name=org.gnome.keyring.SystemPrompter",
Milan Crha's avatar
Milan Crha committed
39
		"--talk-name=org.gnome.OnlineAccounts"
Milan Crha's avatar
Milan Crha committed
40 41
	],
	"modules": [
Milan Crha's avatar
Milan Crha committed
42 43 44 45 46 47 48 49 50 51 52 53
		{
			"name": "intltool",
			"cleanup": [ "*" ],
			"sources": [
				{
					"type": "archive",
					"url": "https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz",
					"sha256": "67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd"
				}
			]
		},

Milan Crha's avatar
Milan Crha committed
54 55 56
		{
			"name": "libical",
			"cleanup": [ "/lib/cmake" ],
Milan Crha's avatar
Milan Crha committed
57
			"buildsystem": "cmake-ninja",
Milan Crha's avatar
Milan Crha committed
58
			"config-opts": [
59
				"-DCMAKE_INSTALL_LIBDIR:PATH=/app/lib",
Milan Crha's avatar
Milan Crha committed
60
				"-DBUILD_SHARED_LIBS:BOOL=ON",
61 62 63 64
				"-DGOBJECT_INTROSPECTION:BOOL=OFF",
				"-DICAL_BUILD_DOCS:BOOL=OFF",
				"-DICAL_GLIB_VAPI:BOOL=OFF",
				"-DICAL_GLIB:BOOL=ON"
Milan Crha's avatar
Milan Crha committed
65 66 67 68
			],
			"sources": [
				{
					"type": "archive",
69 70
					"url": "https://github.com/libical/libical/releases/download/v3.0.8/libical-3.0.8.tar.gz",
					"sha256": "09fecacaf75ba5a242159e3a9758a5446b5ce4d0ab684f98a7040864e1d1286f"
Milan Crha's avatar
Milan Crha committed
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
				}
			]
		},

		{
			"name": "liboauth",
			"config-opts": [ "--enable-nss" ],
			"cleanup": [ "/share/man" ],
			"sources": [
				{
					"type": "archive",
					"url": "https://downloads.sourceforge.net/project/liboauth/liboauth-1.0.3.tar.gz",
					"sha256": "0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f"
				}
			]
		},

88 89
		{
			"name": "gnome-online-accounts",
Milan Crha's avatar
Milan Crha committed
90 91 92 93 94 95
			"config-opts": [
				"--disable-Werror",
				"--disable-telepathy",
				"--disable-documentation",
				"--disable-backend"
			],
96 97 98 99 100 101 102 103 104 105
			"cleanup": [ "/bin", "/share/GConf" ],
			"sources": [
				{
					"type": "archive",
					"url": "https://download.gnome.org/sources/gnome-online-accounts/3.28/gnome-online-accounts-3.28.0.tar.xz",
					"sha256": "87bc4ef307604f1ce4f09f6e5c9996ef8d37ca5e0a3bf76f6b27d71844adb40c"
				}
			]
		},

Milan Crha's avatar
Milan Crha committed
106 107
		{
			"name": "libgdata",
Milan Crha's avatar
Milan Crha committed
108
			"buildsystem": "meson",
Milan Crha's avatar
Milan Crha committed
109
			"config-opts": [
Milan Crha's avatar
Milan Crha committed
110 111 112 113 114 115
				"-Dalways_build_tests=false",
				"-Dgoa=disabled",
				"-Dgtk_doc=false",
				"-Dintrospection=false",
				"-Dinstalled_tests=false",
				"-Dvapi=false"
Milan Crha's avatar
Milan Crha committed
116 117 118 119 120 121 122
			],
			"cleanup": [
				"/share/gtk-doc"
			],
			"sources": [
				{
					"type": "archive",
Milan Crha's avatar
Milan Crha committed
123 124
					"url": "https://download.gnome.org/sources/libgdata/0.17/libgdata-0.17.12.tar.xz",
					"sha256": "a0fd6f8820e8bae019c1f6ffab5af7fcd6d7f147915bb968b56df3ad61b42318"
Milan Crha's avatar
Milan Crha committed
125 126 127 128 129 130
				}
			]
		},

		{
			"name": "geocode-glib",
131
			"buildsystem": "meson",
Milan Crha's avatar
Milan Crha committed
132
			"config-opts": [
133 134
				"-Denable-introspection=false",
				"-Denable-gtk-doc=false"
Milan Crha's avatar
Milan Crha committed
135 136 137 138 139 140 141
			],
			"cleanup": [
				"/share/gtk-doc"
			],
			"sources": [
				{
					"type": "archive",
Milan Crha's avatar
Milan Crha committed
142 143
					"url": "https://download.gnome.org/sources/geocode-glib/3.26/geocode-glib-3.26.1.tar.xz",
					"sha256": "5baa6ab76a76c9fc567e4c32c3af2cd1d1784934c255bc5a62c512e6af6bde1c"
Milan Crha's avatar
Milan Crha committed
144 145 146 147 148 149
				}
			]
		},

		{
			"name": "libgweather",
Milan Crha's avatar
Milan Crha committed
150
			"buildsystem": "meson",
Milan Crha's avatar
Milan Crha committed
151 152 153 154 155 156
			"cleanup": [
				"/share/gtk-doc"
			],
			"sources": [
				{
					"type": "archive",
Milan Crha's avatar
Milan Crha committed
157 158
					"url": "https://download.gnome.org/sources/libgweather/3.34/libgweather-3.34.0.tar.xz",
					"sha256": "02245395d639d9749fe2d19b7e66b64a152b9509ab0e5aad92514538b9c6f1b9"
Milan Crha's avatar
Milan Crha committed
159 160 161 162 163 164
				}
			]
		},

		{
			"name": "openldap",
Milan Crha's avatar
Milan Crha committed
165
			"rm-configure": true,
Milan Crha's avatar
Milan Crha committed
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
			"cleanup": [
				"/bin",
				"/share/man"
			],
			"config-opts": [
				"--disable-backends",
				"--disable-overlays",
				"--disable-slapd",
				"--disable-debug",
				"--enable-dynamic",
				"--without-threads",
				"--with-tls=gnutls"
			],
			"sources": [
				{
					"type": "archive",
Milan Crha's avatar
Milan Crha committed
182 183 184 185 186 187 188 189 190 191
					"url": "http://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.4.46.tgz",
					"sha256": "9a90dcb86b99ae790ccab93b7585a31fbcbeec8c94bf0f7ab0ca0a87ea0c4b2d"
				},

				{
					"type": "script",
					"dest-filename": "autogen.sh",
					"commands": [
						"AUTOMAKE=\"/bin/true\" autoreconf -vfi"
					]
Milan Crha's avatar
Milan Crha committed
192 193 194 195 196
				}
			]
		},

		{
197
			"name": "gspell",
Milan Crha's avatar
Milan Crha committed
198 199 200 201 202 203 204 205 206
			"config-opts": [
				"--disable-gtk-doc",
				"--disable-introspection",
				"--disable-vala"
			],
			"cleanup": [ "/share/gtk-doc" ],
			"sources": [
				{
					"type": "archive",
Milan Crha's avatar
Milan Crha committed
207 208
					"url": "https://download.gnome.org/sources/gspell/1.8/gspell-1.8.3.tar.xz",
					"sha256": "5ae514dd0216be069176accf6d0049d6a01cfa6a50df4bc06be85f7080b62de8"
Milan Crha's avatar
Milan Crha committed
209 210 211 212
				}
			]
		},

213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
		{
			"name": "pinentry",
			"config-opts": [
				"--enable-pinentry-gnome3",
				"--disable-ncurses",
				"--disable-fallback-curses",
				"--disable-pinentry-curses",
				"--disable-pinentry-emacs",
				"--disable-pinentry-gtk2",
				"--disable-pinentry-qt5",
				"--disable-pinentry-tty",
				"--disable-pinentry-tqt",
				"--disable-pinentry-fltk"
			],
			"sources": [
				{
					"type": "archive",
					"url": "https://www.gnupg.org/ftp/gcrypt/pinentry/pinentry-1.1.0.tar.bz2",
					"sha256": "68076686fa724a290ea49cdf0d1c0c1500907d1b759a3bcbfbec0293e8f56570"
				}
			]
		},

236 237 238 239 240 241 242 243
		{
			"name": "bogofilter",
			"buildsystem": "simple",
			"build-commands": [
				"cd ./bogofilter/ && echo \"# Skip for Flatpak build\" > doc/Makefile.am && autoreconf -fi && ./configure --prefix=/app --disable-rpath --with-database=sqlite3 && make && make install"
			],
			"sources": [
				{
244 245
					"type": "git",
					"url": "https://git.code.sf.net/p/bogofilter/git",
246
					"branch": "main"
247 248 249 250
				}
			]
		},

251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
		{
			"name": "libmspack",
			"cleanup": [ "/bin" ],
			"sources": [
				{
					"type": "archive",
					"url": "https://www.cabextract.org.uk/libmspack/libmspack-0.10.1alpha.tar.gz",
					"sha256": "bac862dee6e0fc10d92c70212441d9f8ad9b0222edc9a708c3ead4adb1b24a8e"
				}
			]
		},

		{
			"name": "evolution-data-server",
			"buildsystem": "cmake-ninja",
			"cleanup": [ "/share/GConf" ],
			"config-opts": [
				"-DDBUS_SERVICES_PREFIX=org.gnome.Evolution",
				"-DENABLE_FILE_LOCKING=fcntl",
				"-DENABLE_DOT_LOCKING=OFF",
				"-DENABLE_OAUTH2=ON",
				"-DENABLE_GTK=ON",
				"-DENABLE_GOA=ON",
				"-DENABLE_EXAMPLES=OFF",
				"-DENABLE_INTROSPECTION=OFF",
				"-DENABLE_VALA_BINDINGS=OFF",
				"-DENABLE_INSTALLED_TESTS=OFF",
				"-DENABLE_GTK_DOC=OFF",
				"-DWITH_LIBDB=OFF",
				"-DWITH_PRIVATE_DOCS=OFF",
				"-DWITH_PHONENUMBER=OFF",
				"-DWITH_SYSTEMDUSERUNITDIR=OFF"
			],
			"sources": [
				{
					"type": "git",
					"url": "https://gitlab.gnome.org/GNOME/evolution-data-server.git",
					"branch": "master"
				}
			]
		},

Milan Crha's avatar
Milan Crha committed
293 294
		{
			"name": "evolution",
Milan Crha's avatar
Milan Crha committed
295
			"buildsystem": "cmake-ninja",
Milan Crha's avatar
Milan Crha committed
296 297 298 299 300 301 302 303 304
			"config-opts": [
				"-DENABLE_AUTOAR=OFF",
				"-DENABLE_CONTACT_MAPS=OFF",
				"-DENABLE_GNOME_DESKTOP=OFF",
				"-DENABLE_GTK_DOC=OFF",
				"-DENABLE_INSTALLED_TESTS=OFF",
				"-DENABLE_PST_IMPORT=OFF",
				"-DENABLE_TEXT_HIGHLIGHT=OFF",
				"-DENABLE_YTNEF=OFF",
305
				"-DWITH_BOGOFILTER=/app/bin/bogofilter",
Milan Crha's avatar
Milan Crha committed
306 307 308 309 310 311 312 313 314 315
				"-DWITH_GLADE_CATALOG=OFF",
				"-DWITH_HELP=OFF"
			],
			"cleanup": [
				"/etc/xdg",
				"/share/GConf"
			],
			"sources": [
				{
					"type": "git",
316
					"url": "https://gitlab.gnome.org/GNOME/evolution.git",
Milan Crha's avatar
Milan Crha committed
317 318
					"branch": "master"
				},
319 320 321 322
				{
					"type": "shell",
					"commands": [
						"cp config.h.in config.h.in.orig",
Milan Crha's avatar
Milan Crha committed
323
						"cat config.h.in.orig | sed -e \"s|\\@VERSION_SUBSTRING\\@| \\(flatpak git$(git log --pretty=format:%h --max-count=1)\\)|\" >config.h.in"
324 325
					]
				},
Milan Crha's avatar
Milan Crha committed
326 327 328
				{
					"type": "script",
					"commands": [
329
						"if [ \"$1\" = \"--quit\" -o \"$1\" = \"--force-shutdown\" ]; then",
330
						"   /app/bin/evolution.bin \"$@\"",
331
						"else",
332 333 334
						"   export BOGOFILTER_DIR=\"${XDG_DATA_HOME}/bogofilter/\"",
						"   export GIO_USE_NETWORK_MONITOR=base",
						"   gsettings reset org.gnome.evolution-data-server network-monitor-gio-name",
335
						"",
336
						"   gpg-agent --homedir ~/.gnupg --daemon --pinentry-program=/app/bin/pinentry",
337
						"",
338 339 340 341 342
						"   LINES=$(gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep @SOURCES_SERVICE@ | wc -l)",
						"   if [ \"${LINES}\" = \"0\" ]; then",
						"      /app/libexec/evolution-source-registry &",
						"      gdbus wait --session --timeout=1@TIMEOUTMULT@ @SOURCES_SERVICE@",
						"   fi",
343
						"",
344 345 346 347 348
						"   LINES=$(gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep @ADDRESSBOOK_SERVICE@ | wc -l)",
						"   if [ \"${LINES}\" = \"0\" ]; then",
						"      /app/libexec/evolution-addressbook-factory -r &",
						"      gdbus wait --session --timeout=1@TIMEOUTMULT@ @ADDRESSBOOK_SERVICE@",
						"   fi",
349
						"",
350 351 352 353 354
						"   LINES=$(gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep @CALENDAR_SERVICE@ | wc -l)",
						"   if [ \"${LINES}\" = \"0\" ]; then",
						"      /app/libexec/evolution-calendar-factory -r &",
						"      gdbus wait --session --timeout=1@TIMEOUTMULT@ @CALENDAR_SERVICE@",
						"   fi",
355
						"",
356
						"   /app/bin/evolution.bin \"$@\"",
357 358
						"",
						"   pkill -TERM gpg-agent",
359
						"fi"
Milan Crha's avatar
Milan Crha committed
360
					],
361 362 363 364 365
					"dest-filename": "flatpak-evolution-wrapper.sh.in"
				},
				{
					"type": "script",
					"commands": [
366 367 368 369
						"# see https://gitlab.gnome.org/GNOME/glib/issues/1737",
						"# previous versions used milliseconds instead of seconds as the timeout argument",
						"(`pkg-config --atleast-version 2.60.1 gio-2.0` || `pkg-config --atleast-version 2.61.0 gio-2.0`) && TIMEOUTMULT= || TIMEOUTMULT=000",
						"",
370
						"sed -e \"s|\\@SOURCES_SERVICE\\@|$(pkg-config --variable=sourcesdbusservicename evolution-data-server-1.2)|\" \\",
371 372 373
						"    -e \"s|\\@ADDRESSBOOK_SERVICE\\@|$(pkg-config --variable=addressbookdbusservicename evolution-data-server-1.2)|\" \\",
						"    -e \"s|\\@CALENDAR_SERVICE\\@|$(pkg-config --variable=calendardbusservicename evolution-data-server-1.2)|\" \\",
						"    -e \"s|\\@TIMEOUTMULT\\@|${TIMEOUTMULT}|\""
374 375
					],
					"dest-filename": "flatpak-evolution-fix-service-names.sh"
Milan Crha's avatar
Milan Crha committed
376 377 378
				}
			],
			"post-install": [
379 380
				"./flatpak-evolution-fix-service-names.sh <flatpak-evolution-wrapper.sh.in >flatpak-evolution-wrapper.sh",
				"chmod a+x flatpak-evolution-wrapper.sh",
Milan Crha's avatar
Milan Crha committed
381
				"mv /app/bin/evolution /app/bin/evolution.bin",
382
				"cp flatpak-evolution-wrapper.sh /app/bin/evolution"
Milan Crha's avatar
Milan Crha committed
383 384 385 386 387
			]
		},

		{
			"name": "evolution-ews",
Milan Crha's avatar
Milan Crha committed
388
			"buildsystem": "cmake-ninja",
Milan Crha's avatar
Milan Crha committed
389 390 391
			"sources": [
				{
					"type": "git",
392
					"url": "https://gitlab.gnome.org/GNOME/evolution-ews.git",
Milan Crha's avatar
Milan Crha committed
393 394 395 396 397 398
					"branch": "master"
				}
			]
		}
	]
}