-
Notifications
You must be signed in to change notification settings - Fork 4
/
com.qzandronum.Q-Zandronum.yaml
160 lines (147 loc) · 6.24 KB
/
com.qzandronum.Q-Zandronum.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
app-id: com.qzandronum.Q-Zandronum
runtime: org.kde.Platform
sdk: org.kde.Sdk
runtime-version: 5.15-23.08
command: doomseeker.sh
finish-args:
- --socket=wayland
- --socket=fallback-x11
- --device=dri
- --share=ipc
- --share=network
- --socket=pulseaudio
# Based on GZDoom
# Now for something confusing: Doomseeker honours XDG standards
# But Zandronum doesn't. Both persist for consistency.
- --env=DOOMWADDIR=/app/share/games/doom
- --persist=.config/zandronum
- --persist=.config/doomseeker
cleanup:
- /include
- /lib/*.a
- /lib/*.la
- /lib/pkgconfig
modules:
- shared-modules/glu/glu-9.json
- shared-modules/glew/glew.json
- shared-modules/gtk2/gtk2.json
- shared-modules/SDL/sdl12-compat.json
# with libjpeg.so.8
- name: libjpeg
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_SKIP_RPATH:BOOL=YES
- -DENABLE_STATIC:BOOL=NO
- -DWITH_JPEG8:BOOL=YES
- -DCMAKE_INSTALL_LIBDIR=/app/lib
sources:
- type: archive
url: https://github.com/libjpeg-turbo/libjpeg-turbo/archive/refs/tags/3.0.4.tar.gz
sha256: 0270f9496ad6d69e743f1e7b9e3e9398f5b4d606b6a47744df4b73df50f62e38
- name: fluidsynth1
buildsystem: cmake-ninja
disabled: true
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DLIB_SUFFIX=
- -DCMAKE_EXE_LINKER_FLAGS=-lncurse
- -DCMAKE_SHARED_LINKER_FLAGS=-lncurses
sources:
- type: archive
url: https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v1.1.11.tar.gz
sha256: da8878ff374d12392eecf87e96bad8711b8e76a154c25a571dd8614d1af80de8
- name: gme
buildsystem: cmake-ninja
sources:
- type: archive
url: https://bitbucket.org/mpyne/game-music-emu/downloads/game-music-emu-0.6.3.tar.gz
sha256: 626e8a104e0dadd10ef6519a67aca880c7b40f81471659f1935b61754e12fc7b
x-checker-data:
type: anitya
project-id: 866
url-template: https://bitbucket.org/mpyne/game-music-emu/downloads/game-music-emu-$version.tar.gz
- name: bzip2
buildsystem: simple
build-commands:
- make -f Makefile-libbz2_so
- install -D libbz2.so.1.0.8 /app/lib/libbz2.so.1.0.8
- ln -s /app/lib/libbz2.so.1.0.8 /app/lib/libbz2.so.1.0
sources:
- type: archive
url: https://github.com/opencor/bzip2/archive/refs/tags/bzip2-1.0.8.tar.gz
sha256: db106b740252669664fd8f3a1c69fe7f689d5cd4b132f82ba82b9afba27627df
x-checker-data:
type: anitya
project-id: 237
url-template: https://github.com/opencor/bzip2/archive/refs/tags/bzip2-$version.tar.gz
- name: doomseeker
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_SKIP_RPATH=true
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
sources:
- type: archive
url: https://bitbucket.org/Doomseeker/doomseeker/get/1.5.1.tar.bz2
sha256: eb9c0e2cd4dc1218b6712e451e76ddde963156e9cf79dd23bbd059ce3d807d81
- type: shell
commands:
# Package requires HG_ details for version numbers
# Used to be based on Mercurial so that explains the naming
- sed -i 's/HG_REVISION_HASH_STRING/"Flatpak Edition"/g' ./src/core/version.cpp
- sed -i 's/HG_REVISION_NUMBER/'$(date +%s)'/g' ./src/core/version.cpp
- sed -i 's/HG_TIME/"'$(date --iso-8601=seconds)'"/g' ./src/core/version.cpp
# Skip irrelevant plugins
- sed -i 's/add_opt_subdirectory(chocolate-doom)//g' ./src/plugins/CMakeLists.txt
- sed -i 's/add_opt_subdirectory(zandronum)//g' ./src/plugins/CMakeLists.txt
- sed -i 's/add_opt_subdirectory(odamex)//g' ./src/plugins/CMakeLists.txt
- sed -i 's/add_opt_subdirectory(srb2)//g' ./src/plugins/CMakeLists.txt
- sed -i 's/add_opt_subdirectory(turok2ex)//g' ./src/plugins/CMakeLists.txt
# Zandronum is such a work of art, that it's better for all of us to just
# take the upstream package and call it a day.
- name: q-zandronum
buildsystem: simple
build-commands:
- tar -xf Q-Zandronum_*_Linux_amd64.gz
- install -D q-zandronum /app/bin/q-zandronum
- install -D q-zandronum-server /app/bin/q-zandronum-server
- install -D q-zandronum.pk3 /app/share/games/doom/q-zandronum.pk3
- install -D libfmodex64-4.44.64.so /app/lib/libfmodex64-4.44.64.so
sources:
- type: file
url: https://github.com/IgeNiaI/Q-Zandronum/releases/download/1.4.20/Q-Zandronum_1.4.20_Linux_amd64.gz
sha256: de7e9c61a5b6d1237deb419e9fc4f33162446752a28eda6c17a236df9939530a
x-checker-data:
type: json
url: https://api.github.com/repos/IgeNiaI/Q-Zandronum/releases/latest
version-query: .tag_name
url-query: .assets[] | select(.browser_download_url | contains("Linux_amd64.gz"))
| .browser_download_url
- name: launcher
buildsystem: simple
build-commands:
- install -Dm 744 doomseeker.sh /app/bin/doomseeker.sh
- install -Dm 644 gzdoom.sf2 /app/share/sounds/sf2/gzdoom.sf2
- install -Dm 644 com.qzandronum.Q-Zandronum.desktop -t /app/share/applications
- install -Dm 644 com.qzandronum.Q-Zandronum.appdata.xml -t /app/share/metainfo
- install -Dm 644 com.qzandronum.Q-Zandronum.128.png /app/share/icons/hicolor/128x128/apps/com.qzandronum.Q-Zandronum.png
sources:
- type: file
path: com.qzandronum.Q-Zandronum.desktop
- type: file
path: com.qzandronum.Q-Zandronum.appdata.xml
- type: file
path: com.qzandronum.Q-Zandronum.128.png
- type: file
url: https://github.com/coelckers/gzdoom/raw/g4.13.2/soundfont/gzdoom.sf2
sha256: a9058609b07c1f0e0c1f420e76c2e80ba78136e6173e836caab51ffb13e552f1
- type: script
dest-filename: doomseeker.sh
commands:
# Insert clean zandronum config if none defined
- ls ~/.config/zandronum/zandronum.ini || /app/bin/q-zandronum -nosound
-norun
# Neccessery evil to ensure that Zandronum doesn't crash because of the outdated
# FMOD library: https://zandronum.com/forum/viewtopic.php?t=9885
- sed -i 's|\(snd_output=\)\(.*\)|\1SDL|g' ~/.config/zandronum/zandronum.ini
- sed -i 's|\(snd_mididevice=\)\(.*\)|\1-3|g' ~/.config/zandronum/zandronum.ini
- /app/bin/doomseeker