org.gnome.Builder.json 11.5 KB
Newer Older
1
2
3
4
5
6
{
    "app-id": "org.gnome.Builder",
    "runtime": "org.gnome.Sdk",
    "runtime-version": "master",
    "sdk": "org.gnome.Sdk",
    "command": "gnome-builder",
7
8
    "tags": ["nightly"],
    "desktop-file-name-prefix": "(Nightly) ",
9
    "finish-args": [
10
11
        /* Require recent flatpak at runtime */
        "--require-version=0.8.0",
12
13
14
15
16
17
18
19
        /* Allow access to developer tools */
        "--allow=devel",
        "--talk-name=org.freedesktop.Flatpak",
        /* X11 + XShm access */
        "--share=ipc", "--socket=x11",
        /* Wayland access */
        "--socket=wayland",
        /* We want full fs access */
20
        "--filesystem=home",
21
22
23
24
25
26
27
        /* Needs to talk to the network: */
        "--share=network",
        "--talk-name=org.gtk.vfs.*",
        /* Needs access to policykit for flatpak and sysprof */
        "--system-talk-name=org.freedesktop.PolicyKit1",
        /* Needs access to host sysprofd for profiling */
        "--system-talk-name=org.gnome.Sysprof2",
28
29
        /* Needs access to host gnome-code-assistance for extra languages */
        "--talk-name=org.gnome.CodeAssist.v1.*",
30
31
32
33
34
        /* Needed for dconf to work (+ host or homedir read access from above) */
        "--filesystem=xdg-run/dconf",
        "--filesystem=~/.config/dconf:ro",
        "--talk-name=ca.desrt.dconf",
        "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
35
36
        /* Need access to talk to the file manager */
        "--talk-name=org.freedesktop.FileManager1",
37
38
        /* Need access to packagekit for installs */
        "--talk-name=org.freedesktop.PackageKit",
39
40
        /* We need access to auth agents */
        "--talk-name=org.freedesktop.secrets",
41
        "--filesystem=xdg-run/keyring",
42
43
44
45
46
        /* Needed for various SSL certificates to work */
        "--env=SSL_CERT_DIR=/etc/ssl/certs",
        "--filesystem=/etc/ssl:ro",
        "--filesystem=/etc/pki:ro",
        "--filesystem=/etc/ca-certificates:ro",
47
48
        /* Need access to user and system flatpak repos */
        "--filesystem=~/.local/share/flatpak",
49
50
51
52
53
54
55
56
57
58
59
60
61
        "--filesystem=/var/lib/flatpak"
    ],
    "build-options" : {
        "cflags": "-O2 -g",
        "cxxflags": "-O2 -g",
        "env": {
            "MOUNT_FUSE_PATH": "../tmp/",
            "V": "1"
        }
    },
    "cleanup": ["/include", "/lib/pkgconfig", "/lib/cmake",
                "/share/pkgconfig", "/share/aclocal",
                "/man", "/share/man", "/share/gtk-doc",
62
                "/share/doc", "/share/vala",
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
                "/share/bash-completions",
                "*.la", "*.a"],
    "modules": [
        {
            "name": "libfuse",
            "cleanup": [ "/bin" ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://github.com/libfuse/libfuse/releases/download/fuse_2_9_5/fuse-2.9.5.tar.gz",
                    "sha256": "579f371cc5ffc1afca7057512bf7d52988a9ede57859a7c55e5b9f72435cdbb5"
                }
            ]
        },
        {
            "name": "libgsystem",
            "sources": [
                {
                    "type": "git",
82
                    "url": "https://git.gnome.org/browse/libgsystem.git"
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
                }
            ]
        },
        {
            "name": "ostree",
            "config-opts": [ "--disable-man" ],
            "cleanup": [ "/bin",
                         "/etc/grub.d",
                         "/etc/ostree",
                         "/share/ostree",
                         "/libexec" ],
            "sources": [
                {
                    "type": "git",
                    "url": "https://github.com/ostreedev/ostree.git"
                }
            ]
        },
        {
            "name": "flatpak",
            "config-opts": [ "--disable-documentation",
                             "--disable-seccomp",
                             "--disable-sandboxed-triggers",
                             "--disable-system-helper",
                             "--with-system-install-dir=/var/lib/flatpak" ],
            "cleanup": [ "/etc/profile.d",
                         "/bin/flatpak",
                         "/bin/flatpak-builder",
                         "/libexec",
                         "/lib/systemd",
                         "/share/dbus-1/interfaces/org.freedesktop.*",
                         "/share/dbus-1/services/org.freedesktop.*",
                         "/share/gdm" ],
            "post-install": [ "cp /usr/bin/update-mime-database /app/bin",
                              "cp /usr/bin/update-desktop-database /app/bin" ],
            "sources": [
                {
                    "type": "git",
                    "url": "https://github.com/flatpak/flatpak.git"
                }
            ]
        },
        {
            "name": "polkit",
            "config-opts": [ "--disable-polkitd", "--disable-man-pages", "--disable-introspection" ],
            "rm-configure": true,
            "cleanup": [ "/bin/*",
                         "/etc/pam.d",
                         "/etc/dbus-1",
                         "/share/dbus-1/system-services/*",
                         "/share/polkit-1/actions/*",
                         "/lib/polkit-1" ],
            "sources": [
                {
                    "type": "archive",
                    "url": "http://www.freedesktop.org/software/polkit/releases/polkit-0.113.tar.gz",
                    "sha256": "e1c095093c654951f78f8618d427faf91cf62abdefed98de40ff65eca6413c81"
                },
                {
                    "type": "patch",
                    "path": "build/flatpak/polkit-build-Add-option-to-build-without-polkitd.patch"
                },
                {
                    "type": "file",
                    "path": "build/flatpak/polkit-autogen",
                    "dest-filename": "autogen.sh"
                }
            ]
        },
        {
            "name": "python3-jedi",
            "no-autogen": true,
            "sources": [
                {
                    "type": "archive",
                    "url": "https://pypi.python.org/packages/source/j/jedi/jedi-0.9.0.tar.gz",
                    "sha256": "3b4c19fba31bdead9ab7350fb9fa7c914c59b0a807dcdd5c00a05feb85491d31"
                },
                {
                    "type": "file",
                    "path": "build/flatpak/setuptools-makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python3-lxml",
            "no-autogen": true,
171
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth"],
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
216
217
            "build-options": {
                "cflags": "-I/usr/include",
                "env": {
                    "XSLT_CONFIG": "pkg-config libxslt",
                    "XML2_CONFIG": "pkg-config libxml-2.0"
                }
            },
            "sources": [
                {
                    "type": "archive",
                    "url": "https://pypi.io/packages/source/l/lxml/lxml-3.6.4.tar.gz",
                    "sha256": "61d5d3e00b5821e6cda099b3b4ccfea4527bf7c595e0fb3a7a760490cedd6172"
                },
                {
                    "type": "file",
                    "path": "build/flatpak/setuptools-makefile",
                    "dest-filename": "Makefile"
                },
                {
                    "type": "patch",
                    "path": "build/flatpak/lxml-Fix-getting-lib-version-when-using-pkg-config.patch"
                }
            ]
        },
        {
            "name": "libssh2",
            "cmake": true,
            "config-opts": [ "-DCMAKE_INSTALL_LIBDIR:PATH=/app/lib",
                             "-DBUILD_SHARED_LIBS:BOOL=ON" ],
            "sources": [
                {
                    "type": "git",
                    "url": "https://github.com/libssh2/libssh2.git",
                    "branch": "libssh2-1.6.0"
                }
            ]
        },
        {
            "name": "libgit2",
            "cmake": true,
            "config-opts": [ "-DBUILD_SHARED_LIBS:BOOL=ON",
                             "-DTHREADSAFE=ON" ],
            "sources": [
                {
                    "type": "git",
                    "url": "https://github.com/libgit2/libgit2.git",
218
                    "branch": "maint/v0.25"
219
220
221
222
223
224
225
226
                }
            ]
        },
        {
            "name": "libgit2-glib",
            "sources": [
                {
                    "type": "git",
227
                    "url": "https://git.gnome.org/browse/libgit2-glib"
228
229
230
231
232
233
234
235
236
                }
            ]
        },
        {
            "name": "libpeas",
            "cleanup": [ "/bin/*", "/lib/peas-demo" ],
            "sources": [
                {
                    "type": "git",
237
                    "url": "https://git.gnome.org/browse/libpeas"
238
239
240
241
242
243
244
245
246
                }
            ]
        },
        {
            "name": "gtksourceview",
            "sources": [
                {
                    "branch": "gnome-3-24",
                    "type": "git",
247
                    "url": "https://git.gnome.org/browse/gtksourceview"
248
249
250
251
252
253
                }
            ]
        },
        {
            "name": "devhelp",
            "config-opts": [ "--disable-compile-warnings" ],
254
            "cleanup": [ "/bin/*", "/lib/gedit/plugins", "/share/appdata/*", "/share/applications/*", "/share/dbus-1/services", "/share/GConf" ],
255
256
257
            "sources": [
                {
                    "type": "git",
258
                    "url": "https://git.gnome.org/browse/devhelp"
259
260
261
262
263
264
265
266
                }
            ]
        },
        {
            "name": "json-glib",
            "sources": [
                {
                    "type": "git",
267
                    "url": "https://git.gnome.org/browse/json-glib"
268
269
270
                }
            ]
        },
271
272
273
274
275
276
277
        {
            "name": "gspell",
            "config-opts": [ "--disable-gtk-doc", "--disable-gtk-doc-html" ],
            "cleanup": [ "/include", "/lib/pkgconfig", "*.la", "/share" ],
            "sources": [
                {
                     "type": "git",
278
                     "url": "https://git.gnome.org/browse/gspell"
279
280
281
                }
            ]
        },
282
283
284
        {
            "name": "meson",
            "no-autogen": true,
285
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth"],
286
287
288
289
290
291
292
293
294
295
296
297
298
            "sources": [
                {
                    "type": "archive",
                    "url": "https://github.com/mesonbuild/meson/releases/download/0.38.1/meson-0.38.1.tar.gz",
                    "sha256": "dcb05349b32427924fa2a258a5e23e40e09c1bf9dd09919198c3a2ae1c38ba53"
                },
                {
                    "type": "file",
                    "path": "build/flatpak/setuptools-makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
299
300
301
        {
            "name": "sysprof",
            "config-opts": [ "--enable-gtk", "--with-sysprofd=host" ],
302
            "cleanup": [ "/bin/*", "/libexec/sysprof", "/share/appdata/*", "/share/applications/*", "/share/mime/packages" ],
303
304
305
            "sources": [
                {
                    "type": "git",
306
                    "url": "https://git.gnome.org/browse/sysprof"
307
308
309
310
311
                }
            ]
        },
        {
            "name": "gnome-builder",
312
            "config-opts": [ "--enable-tracing", "--enable-debug", "--with-channel=flatpak-nightly", "--disable-vala-pack-plugin" ],
313
314
315
            "sources": [
                {
                    "type": "git",
316
                    "url": "https://git.gnome.org/browse/gnome-builder"
317
318
319
320
321
                }
            ]
        }
    ]
}