forked from flathub/info.cemu.Cemu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfo.cemu.Cemu.yml
251 lines (237 loc) · 8.66 KB
/
info.cemu.Cemu.yml
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
app-id: info.cemu.Cemu
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
command: Cemu-wrapper
finish-args:
- --device=all
- --socket=fallback-x11
- --socket=wayland
- --socket=pulseaudio
- --share=ipc
- --share=network
- --env=LC_ALL=C
- --filesystem=host:ro
- --filesystem=xdg-run/app/com.discordapp.Discord:ro
- --filesystem=xdg-run/app/com.discordapp.DiscordCanary:ro
- --filesystem=xdg-config/gtk-3.0:ro
modules:
# Required so we can use wxWidgets with openGL integration
- shared-modules/glu/glu-9.json
- shared-modules/glew/glew.json
- name: pugixml
buildsystem: cmake-ninja
config-opts:
- -DBUILD_SHARED_LIBS=ON
cleanup:
- /include
- /lib/cmake
- /lib/pkgconfig
sources:
- type: archive
url: https://github.com/zeux/pugixml/releases/download/v1.13/pugixml-1.13.tar.gz
sha256: 40c0b3914ec131485640fa57e55bf1136446026b41db91c1bef678186a12abbe
x-checker-data:
type: anitya
project-id: 3728
url-template: https://github.com/zeux/pugixml/releases/download/v$version/pugixml-$version.tar.gz
- name: boost
buildsystem: simple
build-commands:
- ./bootstrap.sh --prefix=${FLATPAK_DEST} --with-toolset=gcc --with-libraries=filesystem,system,program_options,nowide
- ./b2 install variant=release link=shared runtime-link=shared cxxflags="$CXXFLAGS"
linkflags="$LDFLAGS" -j ${FLATPAK_BUILDER_N_JOBS}
cleanup:
- /include
- /lib/cmake
sources:
- type: archive
url: https://boostorg.jfrog.io/artifactory/main/release/1.82.0/source/boost_1_82_0.tar.bz2
sha256: a6e1ab9b0860e6a2881dd7b21fe9f737a095e5f33a3a874afc6a345228597ee6
x-checker-data:
type: anitya
project-id: 6845
stable-only: true
url-template: https://boostorg.jfrog.io/artifactory/main/release/$version/source/boost_${major}_${minor}_$patch.tar.bz2
- name: libzip
buildsystem: cmake-ninja
config-opts:
- -DBUILD_DOC=OFF
- -DBUILD_EXAMPLES=OFF
- -DBUILD_REGRESS=OFF
- -DBUILD_TOOLS=OFF
cleanup:
- /bin
- /include
- /lib/cmake
- /lib/pkgconfig
sources:
- type: archive
url: https://libzip.org/download/libzip-1.10.0.tar.xz
sha256: cd2a7ac9f1fb5bfa6218272d9929955dc7237515bba6e14b5ad0e1d1e2212b43
x-checker-data:
type: anitya
project-id: 10649
url-template: https://libzip.org/download/libzip-$version.tar.xz
- name: glslang
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DENABLE_CTEST=OFF
cleanup:
- /include
- /lib/cmake
sources:
- type: archive
url: https://github.com/KhronosGroup/glslang/archive/12.3.1.tar.gz
sha256: a57836a583b3044087ac51bb0d5d2d803ff84591d55f89087fc29ace42a8b9a8
x-checker-data:
type: anitya
stable-only: true
project-id: 205796
url-template: https://github.com/KhronosGroup/glslang/archive/$version.tar.gz
- name: rapidjson
buildsystem: cmake-ninja
config-opts:
- -DRAPIDJSON_BUILD_DOC=OFF
- -DRAPIDJSON_BUILD_EXAMPLES=OFF
- -DRAPIDJSON_BUILD_TESTS=OFF
- -DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF
cleanup:
- /include
- /lib/cmake
- /lib/pkgconfig
- /share/doc
sources:
- type: archive
url: https://github.com/Tencent/rapidjson/archive/refs/tags/v1.1.0.tar.gz
sha256: bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e
x-checker-data:
type: anitya
project-id: 7422
stable-only: true
url-template: https://github.com/Tencent/rapidjson/archive/refs/tags/v$version.tar.gz
- name: glm
buildsystem: cmake-ninja
cleanup: ['*']
no-make-install: true
post-install:
- install -d ${FLATPAK_DEST}/include
- cp -R glm ${FLATPAK_DEST}/include
- cp -R cmake/glm ${FLATPAK_DEST}/lib/cmake
sources:
- type: archive
url: https://github.com/g-truc/glm/releases/download/0.9.9.8/glm-0.9.9.8.zip
sha256: 37e2a3d62ea3322e43593c34bae29f57e3e251ea89f4067506c94043769ade4c
- name: fmt
buildsystem: cmake-ninja
config-opts:
- -DFMT_TEST=Off
cleanup:
- '*'
sources:
- type: archive
url: https://github.com/fmtlib/fmt/archive/9.1.0.tar.gz
sha256: 5dea48d1fcddc3ec571ce2058e13910a0d4a6bab4cc09a809d8b1dd1c88ae6f2
x-checker-data:
type: anitya
project-id: 11526
url-template: https://github.com/fmtlib/fmt/archive/$version.tar.gz
versions: {<: '10.0'}
- name: gamemode
buildsystem: meson
config-opts:
- -Dwith-sd-bus-provider=no-daemon
- -Dwith-examples=false
sources:
- type: git
url: https://github.com/FeralInteractive/gamemode
commit: 4dc99dff76218718763a6b07fc1900fa6d1dafd9
tag: '1.7'
x-checker-data:
type: anitya
project-id: 17410
stable-only: true
tag-template: $version
- name: wxwidgets
cleanup:
- /bin
- /include
- /lib/cmake
- /lib/wx
- /share
sources:
- type: archive
url: https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.2.1/wxWidgets-3.2.2.1.tar.bz2
sha256: dffcb6be71296fff4b7f8840eb1b510178f57aa2eb236b20da41182009242c02
x-checker-data:
type: anitya
project-id: 5150
stable-only: true
url-template: https://github.com/wxWidgets/wxWidgets/releases/download/v$version/wxWidgets-$version.tar.bz2
- name: Cemu
buildsystem: cmake-ninja
config-opts:
- -DPORTABLE=false
- -DENABLE_VCPKG=false
sources:
- type: git
url: https://github.com/cemu-project/Cemu
# TODO: Update tag pattern on next stable ^v([\d.]+)$
x-checker-data:
type: git
tag-pattern: ^v([\d.]+-\d+)$
tag: v2.0-46
commit: a17111e6b0e4802044c90f4bedd66478de689070
- type: shell
commands:
- sed "s/set(EXPERIMENTAL_VERSION.*/set(EXPERIMENTAL_VERSION \"$(git describe
--tag | sed "s/v2.0-//")\" CACHE STRING \"\")/g" -i CMakeLists.txt
- type: script
commands:
- |
for d in DiscordCanary Discord; do
for i in {0..9}; do
test -S $XDG_RUNTIME_DIR/discord-ipc-$i ||
ln -sf {app/com.discordapp.$d,$XDG_RUNTIME_DIR}/discord-ipc-$i;
done
done
Cemu_relwithdebinfo "$@"
dest-filename: Cemu-wrapper
- type: script
dest-filename: dev_release_metainfo.py
commands:
- |
import os
import xml.etree.ElementTree as ET
meta_file = os.environ.get('AS_META_FILE')
version = os.environ.get('AS_META_VERSION')
release_type = os.environ.get('AS_META_TYPE')
release_date = os.environ.get('AS_META_DATE')
release_url = os.environ.get('AS_META_URL')
tree = ET.parse(meta_file)
root = tree.getroot()
el_releases = root.find('releases')
for el_release in el_releases:
el_releases.remove(el_release)
el_release = ET.SubElement(el_releases, 'release')
el_url = ET.SubElement(el_release, 'url')
el_url.text = release_url
el_release.attrib['type'] = release_type
el_release.attrib['date'] = release_date
el_release.attrib['version'] = version
ET.indent(tree, space=' ', level=0)
tree.write(meta_file, encoding='utf8')
post-install:
- cp -r bin/gameProfiles ${FLATPAK_DEST}/share/Cemu/
- cp -r bin/resources ${FLATPAK_DEST}/share/Cemu/
- AS_META_DATE="$(git log -1 --format=%ci | awk '{print $1}')" AS_META_FILE='dist/linux/info.cemu.Cemu.metainfo.xml'
AS_META_URL="https://github.com/cemu-project/Cemu/releases/tag/$(git describe
--tags)" AS_META_TYPE='development' AS_META_VERSION="$(git describe --tags
| tr -d 'v' | sed 's/-/~experimental/')" python ./dev_release_metainfo.py
- install -Dm644 -t ${FLATPAK_DEST}/share/appdata/ dist/linux/info.cemu.Cemu.metainfo.xml
- install -Dm644 -t ${FLATPAK_DEST}/share/applications/ dist/linux/info.cemu.Cemu.desktop
- install -Dm644 -t ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/ dist/linux/info.cemu.Cemu.png
- desktop-file-edit --set-key=Exec --set-value="${FLATPAK_DEST}/bin/Cemu-wrapper"
${FLATPAK_DEST}/share/applications/info.cemu.Cemu.desktop
- install -D -t ${FLATPAK_DEST}/bin/ bin/Cemu_relwithdebinfo Cemu-wrapper