org.zdoom.GZDoom/org.zdoom.GZDoom.yaml
2020-10-30 21:48:10 +01:00

90 lines
2.6 KiB
YAML

app-id: org.zdoom.GZDoom
runtime: org.freedesktop.Platform
sdk: org.freedesktop.Sdk
runtime-version: "20.08"
command: gzdoom.sh
finish-args:
- --device=dri
- --socket=wayland
- --socket=fallback-x11
- --socket=x11
- --share=ipc
- --share=network
- --socket=pulseaudio
# Based on GZDoom
# We redirect the original ~/.config/gzdoom
- --env=DOOMWADDIR=/app/share/games/doom
- --persist=.config/gzdoom
# Simpler way of preventing KDE related errors
- --env=KDE_FULL_SESSION=false
cleanup:
- /app/include
- /app/lib/*.a
- /app/lib/*.la
- /app/lib/pkgconfig
modules:
- shared-modules/linux-audio/fluidsynth2.json
# Music library behind zdoom
- name: zmusic
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
sources:
- type: archive
url: https://github.com/coelckers/ZMusic/archive/1.1.3.tar.gz
sha256: 5f432b022e023175eae7701625f79287e9ffe889a444179681381026b4fb93bf
# This builds both the application code and
# the custom game data
- name: gzdoom
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
sources:
- type: git
url: https://github.com/coelckers/gzdoom.git
tag: g4.4.2
commit: 04e53b815f8c1653cc77d5b6b376d99f93110be6
- type: file
url: https://github.com/coelckers/gzdoom/raw/g4.4.2/soundfont/gzdoom.sf2
sha256: fca3e514b635a21789d4224e84865d2954a2a914d46b64aa8219ddb565c44869
# I've discussed these patches upstream and a special -DFLATPAK_BUNDLE has been approved
# https://forum.zdoom.org/viewtopic.php?f=15&t=68365&sid=884a41102b499f98ed9c76a62ee0e41d
- type: patch
path: description.patch
- type: shell
commands:
- install -Dm 644 gzdoom.sf2 /app/share/sounds/sf2/gzdoom.sf2
- name: launcher
buildsystem: simple
sources:
- type: script
commands:
- gzdoom +fluid_patchset /app/share/sounds/sf2/gzdoom.sf2 -file lights.pk3 brightmaps.pk3 "$@"
dest-filename: gzdoom.sh
- type: file
path: org.zdoom.GZDoom.desktop
- type: file
path: org.zdoom.GZDoom.appdata.xml
- type: file
path: org.zdoom.GZDoom.48.png
- type: file
path: org.zdoom.GZDoom.64.png
- type: file
path: org.zdoom.GZDoom.128.png
build-commands:
- install -D gzdoom.sh /app/bin/gzdoom.sh
- install -Dm 644 org.zdoom.GZDoom.desktop -t /app/share/applications
- install -Dm 644 org.zdoom.GZDoom.appdata.xml -t /app/share/metainfo
- install -Dm 644 org.zdoom.GZDoom.48.png /app/share/icons/hicolor/48x48/apps/org.zdoom.GZDoom.png
- install -Dm 644 org.zdoom.GZDoom.64.png /app/share/icons/hicolor/64x64/apps/org.zdoom.GZDoom.png
- install -Dm 644 org.zdoom.GZDoom.128.png /app/share/icons/hicolor/128x128/apps/org.zdoom.GZDoom.png