forked from flathub/com.github.skullernet.q2pro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.github.skullernet.q2pro.yaml
45 lines (45 loc) · 1.69 KB
/
com.github.skullernet.q2pro.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
app-id: com.github.skullernet.q2pro
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
command: q2pro.sh
rename-icon: q2pro
rename-desktop-file: q2pro.desktop
finish-args:
- --share=network
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
- --device=dri
modules:
- name: q2pro
buildsystem: meson
builddir: true
build-options:
config-opts:
- -Dhomedir=/var/data
post-install:
- install -Dm775 ../q2pro.sh -t ${FLATPAK_DEST}/bin/
- install -Dm644 ../q2pro.svg -t ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps
- install -Dm644 ../com.github.skullernet.q2pro.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo
- desktop-file-edit --set-key=Exec --set-value='q2pro.sh +connect %u' ${FLATPAK_BUILDER_BUILDDIR}/src/unix/res/q2pro.desktop
- desktop-file-edit --add-mime-type=x-scheme-handler/quake2 ${FLATPAK_BUILDER_BUILDDIR}/src/unix/res/q2pro.desktop
- install -Dm644 ${FLATPAK_BUILDER_BUILDDIR}/src/unix/res/q2pro.desktop -t ${FLATPAK_DEST}/share/applications
sources:
- type: git
url: https://github.com/skullernet/q2pro.git
tag: r2146
commit: 0211345218d590ad9887ab2292e8284a9bcdac67
x-checker-data:
type: git
tag-pattern: ^r([\d.]+)$
- type: file
path: com.github.skullernet.q2pro.metainfo.xml
- type: file
path: q2pro.svg
- type: script
dest-filename: q2pro.sh
commands:
- ls ${XDG_DATA_HOME}/baseq2/pak0.pak || zenity --error --text "Game data (/baseq2/ etc.) must be added to:\n${XDG_DATA_HOME}/baseq2/" --ok-label "Close" --width=400
- /app/bin/q2pro "$@"