-
Notifications
You must be signed in to change notification settings - Fork 6
/
org.freedesktop.Sdk.Extension.mono6.json
91 lines (91 loc) · 3.48 KB
/
org.freedesktop.Sdk.Extension.mono6.json
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
{
"id": "org.freedesktop.Sdk.Extension.mono6",
"branch": "24.08",
"runtime": "org.freedesktop.Sdk",
"build-extension": true,
"sdk": "org.freedesktop.Sdk",
"runtime-version": "24.08",
"separate-locales": false,
"modules": [
{
"name": "mono",
"build-options": {
"prefix": "${FLATPAK_DEST}"
},
"sources": [
{
"type": "archive",
"url": "https://download.mono-project.com/sources/mono/mono-6.12.0.199.tar.xz",
"sha256": "c0850d545353a6ba2238d45f0914490c6a14a0017f151d3905b558f033478ef5",
"x-checker-data": {
"type": "html",
"url": "https://download.mono-project.com/sources/mono/",
"version-pattern": "mono-(6(?:\\.[\\d]+){3})\\.tar\\.xz",
"url-template": "https://download.mono-project.com/sources/mono/mono-${version}.tar.xz",
"is-main-source": true
}
}
]
},
{
"name": "msbuild",
"buildsystem": "simple",
"build-commands": [
"ar x msbuild_*.deb",
"rm -r msbuild_*.deb",
"tar xf data.tar.xz --strip-components=2 --exclude=doc --directory=${FLATPAK_DEST}",
"sed -i 's:/usr:/usr/lib/sdk/mono6:g' ${FLATPAK_DEST}/bin/msbuild"
],
"sources": [
{
"type": "file",
"url": "https://download.mono-project.com/repo/debian/pool/main/m/msbuild/msbuild_16.10.1%2bxamarinxplat.2021.05.26.14.00-0xamarin2%2bdebian10b1_all.deb",
"sha256": "a177610be806c44877169a3fef7f15ffc65e2df7bdbe11b532eb6cc8f92b4c3c",
"x-checker-data": {
"type": "debian-repo",
"package-name": "msbuild",
"root": "https://download.mono-project.com/repo/debian",
"dist": "stable-buster",
"component": "main"
}
}
]
},
{
"name": "scripts",
"sources": [
{
"type": "file",
"path": "install.sh"
},
{
"type": "script",
"commands": [
"export PATH=$PATH:${FLATPAK_DEST}/bin",
"export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}${FLATPAK_DEST}/lib",
"export PKG_CONFIG_PATH=${PKG_CONFIG_PATH:+$PKG_CONFIG_PATH:}${FLATPAK_DEST}/lib/pkgconfig",
"export MONO_GAC_PREFIX=/app"
],
"dest-filename": "use.sh"
}
],
"buildsystem": "simple",
"build-commands": [
"install use.sh install.sh ${FLATPAK_DEST}/"
]
},
{
"name": "appdata",
"buildsystem": "simple",
"build-commands": [
"install -D ${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
],
"sources": [
{
"type": "file",
"path": "org.freedesktop.Sdk.Extension.mono6.metainfo.xml"
}
]
}
]
}