-
Notifications
You must be signed in to change notification settings - Fork 0
/
net.sourceforge.quakespasm.Quakespasm.yml
70 lines (63 loc) · 2.33 KB
/
net.sourceforge.quakespasm.Quakespasm.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
app-id: net.sourceforge.quakespasm.Quakespasm
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: quakespasm.sh
finish-args:
# hardware 3D
- --device=dri
# X11 + XShm access
- --share=ipc
- --socket=x11
# Audio
- --socket=pulseaudio
cleanup:
- /include
- '*.a'
- '*.la'
- /lib/pkgconfig
modules:
- shared-modules/libmad/libmad.json
- name: libxmp
buildsystem: autotools
sources:
- type: git
url: https://github.com/libxmp/libxmp/
tag: libxmp-4.6.0
commit: 8201d26cf933688a8be64292457c429fd8e654ab
x-checker-data:
type: git
tag-pattern: ^libxmp-(.*)$
- name: quakespasm
sources:
- type: git
url: https://github.com/sezero/quakespasm
# commenting out until a release has been made that includes the appstream and desktop files
# tag: quakespasm-0.96.1
commit: cc32abe09ed417ce3be10af300d2dc2f686349ba
x-checker-data:
type: git
tag-pattern: ^quakespasm-(.*)$
tag: quakespasm-0.96.3
- type: script
dest-filename: quakespasm.sh
commands:
# Verify game data is present
- ls $XDG_DATA_HOME/id1/pak0.pak || zenity --error --text "Please ensure
$XDG_DATA_HOME/id1/ exists and contains at least Quake's pak0.pak game
data file." --ok-label "Close" --width=400
# launch the game
- /app/bin/quakespasm -basedir $XDG_DATA_HOME "$@"
buildsystem: simple
build-commands:
# Build
- cd Quake && make USE_SDL2=1 USE_CODEC_FLAC=1 USE_CODEC_OPUS=1 USE_CODEC_XMP=1
# Install main quakespasm data and executable
- install -D -m744 -t /app/bin/ Quake/quakespasm
- install -D -m755 -t /app/bin/ Quake/quakespasm.pak
# Install metadata and launcher files
- install -D -m744 -t /app/bin/ quakespasm.sh
- install -D -m755 Misc/QuakeSpasm_512.png /app/share/icons/hicolor/512x512/apps/net.sourceforge.quakespasm.Quakespasm.png
- install -D -m755 -t /app/share/metainfo/ Linux/net.sourceforge.quakespasm.Quakespasm.appdata.xml
- desktop-file-edit --set-key=Exec --set-value=quakespasm.sh Linux/net.sourceforge.quakespasm.Quakespasm.desktop
- install -D -m755 -t /app/share/applications/ Linux/net.sourceforge.quakespasm.Quakespasm.desktop