flatpak-gtksharp.json.tmpl 2.2 KB
Newer Older
1
2
3
{
    "app-id": "{{appid}}",
    "runtime": "org.gnome.Platform",
4
    "runtime-version": "3.30",
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
    "sdk": "org.gnome.Sdk",
    "command": "{{exec_name}}",
    "sdk-extensions": ["org.freedesktop.Sdk.Extension.mono5"],
    "finish-args": [
        "--share=network",
        "--share=ipc",
        "--socket=x11",
        "--socket=wayland",
        "--filesystem=xdg-run/dconf",
        "--filesystem=~/.config/dconf:ro",
        "--talk-name=ca.desrt.dconf",
        "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
    ],
    "build-options" : {
        "append-path": "/usr/lib/sdk/mono5/bin",
        "append-ld-library-path": "/usr/lib/sdk/mono5/lib",
        "env": {
            "PKG_CONFIG_PATH": "/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/sdk/mono5/lib/pkgconfig"
        }
    },
    "cleanup": [ "/lib/monodoc", "/lib/pkgconfig" ],
    "modules": [
        {
            "name": "mono-runtime",
            "buildsystem": "simple",
            "build-commands": ["/usr/lib/sdk/mono5/install.sh "],
            "build-options" : {
                "no-debuginfo": true,
                "strip": true
            }
        },
36
37
38
39
40
41
42
43
44
45
46
47
        {
            "name" : "meson",
            "buildsystem" : "simple",
            "build-commands": ["pip3 install -I --prefix=/app ."],
            "sources" : [
                {
                    "type" : "git",
                    "url" : "https://github.com/mesonbuild/meson.git",
                    "branch" : "0.48.1"
                }
            ]
        },
48
49
50
51
        {
            "name": "gtk-sharp3",
            "buildsystem": "meson",
            "builddir": true,
52
53
54
55
            "config-opts" : [
                "--libdir=lib",
                "-Dinstall=true"
            ],
56
57
58
            "sources": [
                {
                    "type": "git",
59
                    "url": "https://github.com/GLibSharp/GtkSharp"
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
                }
            ]
        },
        {
            "name": "{{name}}",
            "buildsystem": "meson",
            "builddir": true,
            "sources": [
                {
                    "type": "git",
                    "url": "file://{{project_path}}"
                }
            ]
        }
    ]
}