-
Notifications
You must be signed in to change notification settings - Fork 8
/
com.play0ad.zeroad.yaml
172 lines (163 loc) · 6.14 KB
/
com.play0ad.zeroad.yaml
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
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
171
172
app-id: com.play0ad.zeroad
runtime: org.freedesktop.Platform
runtime-version: '20.08'
sdk: org.freedesktop.Sdk
sdk-extensions: [org.freedesktop.Sdk.Extension.rust-stable]
command: 0ad
finish-args:
# wxWidgets doesn't work yet on Wayland
#- --socket=wayland
- --socket=fallback-x11
- --device=shm
- --share=ipc
- --device=dri
- --socket=pulseaudio
- --share=network
cleanup:
- /include
- /lib/pkgconfig
- '*.a'
- '*.la'
modules:
- name: boost
buildsystem: simple
build-commands:
- ./bootstrap.sh --prefix=/app --with-libraries=filesystem,system
- ./b2 headers
- ./b2 install
sources:
- sha256: 953db31e016db7bb207f11432bef7df100516eeb746843fa0486a222e3fd49cb
type: archive
url: https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.tar.bz2
x-checker-data:
type: anitya
project-id: 6845
stable-only: true
url-template: https://dl.bintray.com/boostorg/release/$version/source/boost_${major}_${minor}_$patch.tar.bz2
- name: gloox
sources:
- sha256: ae1462be2a2eb8fe5cd054825143617c53c2c9c7195606cb5a5ba68c0f68f9c9
type: archive
url: https://camaya.net/download/gloox-1.0.24.tar.bz2
x-checker-data:
type: anitya
project-id: 7318
url-template: https://camaya.net/download/gloox-$version.tar.bz2
- name: enet
sources:
- sha256: 1e0b4bc0b7127a2d779dd7928f0b31830f5b3dcb7ec9588c5de70033e8d2434a
type: archive
url: https://github.com/lsalzman/enet/archive/v1.3.17.tar.gz
x-checker-data:
type: anitya
project-id: 696
url-template: https://github.com/lsalzman/enet/archive/v$version.tar.gz
- type: script # cf. https://github.com/lsalzman/enet/blob/master/README
dest-filename: autogen.sh
commands:
- autoreconf -ifv
- name: miniupnpc
buildsystem: cmake-ninja
sources:
- sha256: 888fb0976ba61518276fe1eda988589c700a3f2a69d71089260d75562afd3687
type: archive
url: https://miniupnp.tuxfamily.org/files/miniupnpc-2.2.2.tar.gz
x-checker-data:
type: anitya
project-id: 1986
url-template: https://miniupnp.tuxfamily.org/files/miniupnpc-$version.tar.gz
- name: libsodium
sources:
- type: archive
url: https://github.com/jedisct1/libsodium/archive/1.0.18.tar.gz
sha256: d59323c6b712a1519a5daf710b68f5e7fde57040845ffec53850911f10a5d4f4
x-checker-data:
type: anitya
project-id: 1728
url-template: https://github.com/jedisct1/libsodium/archive/$version.tar.gz
- name: fmt
buildsystem: cmake-ninja
config-opts:
- -DFMT_TEST=Off
cleanup:
- '*'
sources:
- type: archive
url: https://github.com/fmtlib/fmt/archive/7.1.3.tar.gz
sha256: 5cae7072042b3043e12d53d50ef404bbb76949dad1de368d7f993a15c8c05ecc
x-checker-data:
type: anitya
project-id: 11526
url-template: https://github.com/fmtlib/fmt/archive/$version.tar.gz
- name: autoconf-2.13
config-opts:
- --program-suffix=-2.13
cleanup:
- '*'
sources:
- type: archive
url: https://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz
sha256: f0611136bee505811e9ca11ca7ac188ef5323a8e2ef19cffd3edb3cf08fd791e
# Required so we can use wxWidgets with openGL integration
- shared-modules/glu/glu-9.json
- name: wxWidgets
rm-configure: true
config-opts:
- --with-gtk=3
- --with-opengl
build-options:
cxxflags: -std=c++11
sources:
- type: archive
url: https://github.com/wxWidgets/wxWidgets/archive/v3.1.3.tar.gz
sha256: a5cb5ea326d76b5e472e9400933cef17c900d5c9b549e40eef00b64fe86d7cb0
x-checker-data:
type: anitya
project-id: 5150
url-template: https://github.com/wxWidgets/wxWidgets/archive/v$version.tar.gz
- type: script
dest-filename: autogen.sh
commands:
- cp -p /usr/share/automake-*/config.{sub,guess} .
- autoconf -f -B build/autoconf_prepend-include
- name: 0ad
buildsystem: simple
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
build-commands:
- cp cargo.patch libraries/source/spidermonkey/
- echo "patch -p1 < ../cargo.patch" >> libraries/source/spidermonkey/patch.sh
- cd build/workspaces && ./update-workspaces.sh -j$FLATPAK_BUILDER_N_JOBS
--bindir=/app/bin --libdir=/app/lib --datadir=/app/share/games/0ad/ && cd
gcc && make -j$FLATPAK_BUILDER_N_JOBS
post-install:
- mkdir -p /app/share/games/0ad
- mv binaries/system/lib* /app/lib/
- install -D -t /app/bin binaries/system/pyrogenesis
- install -Dm644 build/resources/0ad.appdata.xml /app/share/metainfo/com.play0ad.zeroad.appdata.xml
- sed -i 's|0ad.desktop|com.play0ad.zeroad.desktop|g' /app/share/metainfo/com.play0ad.zeroad.appdata.xml
- install -Dm644 build/resources/0ad.desktop /app/share/applications/com.play0ad.zeroad.desktop
- install -Dm644 build/resources/0ad.png /app/share/icons/hicolor/128x128/apps/com.play0ad.zeroad.png
- install -D build/resources/0ad.sh /app/bin/0ad
- desktop-file-edit --set-key=Icon --set-value='com.play0ad.zeroad' /app/share/applications/com.play0ad.zeroad.desktop
- mv binaries/data/* /app/share/games/0ad
sources:
- type: archive
url: https://releases.wildfiregames.com/0ad-0.0.24b-alpha-unix-build.tar.xz
sha256: 325c23c9b6bfc16eb636af6a7a7bdaadbf19214b6eed0422d74cc0090bf137a8
x-checker-data:
type: anitya
project-id: 5830
url-template: https://releases.wildfiregames.com/0ad-$version-alpha-unix-build.tar.xz
- type: archive
url: https://releases.wildfiregames.com/0ad-0.0.24b-alpha-unix-data.tar.xz
sha256: 41f5868379749aa20b96a8fa2e60dc872ebe22047db061c7cc894462e897a32c
x-checker-data:
type: anitya
project-id: 5830
url-template: https://releases.wildfiregames.com/0ad-$version-alpha-unix-data.tar.xz
- type: patch
paths:
- 0ad_appdata.patch
- type: file
path: cargo.patch