/
in.p1x.TanksOfFreedom.json
106 lines (106 loc) · 3.31 KB
/
in.p1x.TanksOfFreedom.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"app-id": "in.p1x.TanksOfFreedom",
"runtime": "org.freedesktop.Platform",
"runtime-version": "20.08",
"sdk": "org.freedesktop.Sdk",
"command": "tanksoffreedom",
"finish-args": [
"--socket=x11",
"--socket=pulseaudio",
"--persist=.godot",
"--share=ipc",
"--share=network",
"--device=all"
],
"modules": [
{
"name": "scons",
"buildsystem": "simple",
"cleanup": [ "*" ],
"sources": [
{
"type": "archive",
"url": "http://downloads.sourceforge.net/project/scons/scons/3.0.4/scons-3.0.4.tar.gz",
"sha256": "e2b8b36e25492720a05c0f0a92a219b42d11ce0c51e3397a1e8296dfea1d9b1a"
}
],
"build-commands": [ "python setup.py install --prefix=${FLATPAK_DEST} --optimize=1" ]
},
"shared-modules/glu/glu-9.json",
{
"name": "godot",
"buildsystem": "simple",
"sources": [
{
"type": "archive",
"url": "https://github.com/godotengine/godot/archive/2.1.5-stable.tar.gz",
"sha256": "74179c08bcc20cc89b4ac2785a31f201d81eb4aa875c80ffcb82d9fb80e8e187"
}
],
"build-commands": [
"scons platform=x11 \\
CCFLAGS=-I${C_INCLUDE_PATH} \\
prefix=${FLATPAK_DEST} \\
unix_global_settings_path=${FLATPAK_DEST} \\
verbose=yes \\
-j $FLATPAK_BUILDER_N_JOBS \\
target=release_debug \\
use_llvm=yes \\
builtin_freetype=no \\
builtin_libmpcdec=yes \\
builtin_libogg=no \\
builtin_libpng=no \\
builtin_libtheora=no \\
builtin_libvorbis=no \\
builtin_libwebp=no \\
builtin_libvpx=no \\
builtin_zlib=no \\
builtin_opus=yes \\
builtin_speex=yes \\
builtin_squish=yes \\
pulseaudio=yes \\
udev=no \\
tools=no",
"install -D -m755 bin/godot* ${FLATPAK_DEST}/bin/godot-bin"
]
},
{
"name": "tanksoffreedom",
"sources": [
{
"type": "archive",
"url": "https://github.com/w84death/Tanks-of-Freedom/archive/0.7.0-beta.tar.gz",
"sha256": "6ca6a633c82390a3c9dac8ba4481c4f5439dd1b25e732db5552586e9cbf0a74c"
},
{
"type": "file",
"path": "in.p1x.TanksOfFreedom.appdata.xml"
},
{
"type": "file",
"path": "in.p1x.TanksOfFreedom.desktop"
},
{
"type": "script",
"dest-filename": "tanksoffreedom.sh",
"commands": [
"exec /app/bin/godot-bin -path /app/tanksoffreedom \"$@\""
]
}
],
"buildsystem": "simple",
"post-install": [
"for size in 16 24 32 48 128 256 512; do
install -Dm644 ${FLATPAK_DEST}/tanksoffreedom/assets/icons/icon${size}.png ${FLATPAK_DEST}/share/icons/hicolor/${size}x${size}/apps/${FLATPAK_ID}.png
done"
],
"build-commands": [
"install -Dm755 tanksoffreedom.sh ${FLATPAK_DEST}/bin/tanksoffreedom",
"install -Dm644 in.p1x.TanksOfFreedom.appdata.xml -t ${FLATPAK_DEST}/share/appdata/",
"install -Dm644 in.p1x.TanksOfFreedom.desktop -t ${FLATPAK_DEST}/share/applications/",
"mkdir -p ${FLATPAK_DEST}/tanksoffreedom",
"mv * ${FLATPAK_DEST}/tanksoffreedom/"
]
}
]
}