forked from flathub/org.geogebra.GeoGebra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.geogebra.GeoGebra.json
76 lines (75 loc) · 2.92 KB
/
org.geogebra.GeoGebra.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
{
"app-id": "org.geogebra.GeoGebra",
"runtime": "org.freedesktop.Platform",
"runtime-version": "1.6",
"sdk": "org.freedesktop.Sdk",
"command": "geogebra",
"finish-args": [
"--share=ipc",
"--share=network",
"--device=dri",
"--socket=x11",
"--socket=wayland",
"--filesystem=home",
"--extra-data=GeoGebra-Linux-Portable-5-0-408-0.tar.bz2:d84fe7e65c1c754050b508334d29d2550e28c499a9184d083f363765a0e9383a:135085052::https://download.geogebra.org/installers/5.0/GeoGebra-Linux-Portable-5-0-408-0.tar.bz2"
],
"modules": [
{
"name": "geogebra",
"buildsystem": "simple",
"sources": [
{
"type": "file",
"path": "geogebra.desktop"
},
{
"type": "file",
"path": "geogebra.png"
},
{
"type": "file",
"path": "appdata.xml"
},
{
"type": "script",
"dest-filename": "apply_extra",
"commands": [
"tar -jxvf GeoGebra-Linux-Portable-5-0-408-0.tar.bz2",
"rm -f GeoGebra-Linux-Portable-5-0-408-0.tar.bz2",
"/app/bin/cleanup-other-arches.sh"
]
},
{
"type": "script",
"commands": ["exec /app/extra/GeoGebra-Linux-Portable-5-0-408-0/geogebra-portable \"$@\""],
"dest-filename": "geogebra.sh"
},
{
"type": "script",
"dest-filename": "cleanup-other-arches.sh",
"commands": [
"rm -rf /app/extra/GeoGebra-Linux-Portable-5-0-408-0/jre1.8.0_121-i686/"
],
"only-arches": ["x86_64"]
},
{
"type": "script",
"dest-filename": "cleanup-other-arches.sh",
"commands": [
"rm -rf /app/extra/GeoGebra-Linux-Portable-5-0-408-0/jre1.8.0_121-x86_64/"
],
"only-arches": ["i386"]
}
],
"build-commands": [
"mkdir -p /app/bin",
"install -Dm755 apply_extra /app/bin",
"install -Dm755 cleanup-other-arches.sh /app/bin",
"install -Dm755 geogebra.sh /app/bin/geogebra",
"install -Dm644 geogebra.desktop /app/share/applications/org.geogebra.GeoGebra.desktop",
"install -Dm644 geogebra.png /app/share/icons/hicolor/256x256/apps/org.geogebra.GeoGebra.png",
"install -Dm644 appdata.xml /app/share/appdata/org.geogebra.GeoGebra.appdata.xml"
]
}
]
}