2019-09-09 22:05:07 +00:00
|
|
|
app-id: org.zdoom.GZDoom
|
2019-09-11 06:37:04 +00:00
|
|
|
runtime: org.freedesktop.Platform
|
|
|
|
sdk: org.freedesktop.Sdk
|
2019-09-18 11:48:55 +00:00
|
|
|
runtime-version: "19.08"
|
2019-09-09 22:05:07 +00:00
|
|
|
command: gzdoom.sh
|
|
|
|
|
|
|
|
finish-args:
|
|
|
|
- --device=dri
|
|
|
|
- --socket=wayland
|
|
|
|
- --socket=fallback-x11
|
|
|
|
- --socket=x11
|
|
|
|
- --share=ipc
|
2019-10-20 20:13:52 +00:00
|
|
|
- --share=network
|
2019-09-09 22:05:07 +00:00
|
|
|
- --socket=pulseaudio
|
|
|
|
|
2019-09-09 22:52:23 +00:00
|
|
|
# Based on GZDoom
|
2020-04-26 08:27:01 +00:00
|
|
|
# We redirect the original ~/.config/gzdoom
|
2019-09-09 22:05:07 +00:00
|
|
|
- --env=DOOMWADDIR=/app/share/games/doom
|
2019-09-18 09:08:47 +00:00
|
|
|
- --persist=.config/gzdoom
|
2019-09-09 22:05:07 +00:00
|
|
|
|
2020-06-07 18:26:28 +00:00
|
|
|
# Simpler way of preventing KDE related errors
|
|
|
|
- --env=KDE_FULL_SESSION=false
|
|
|
|
|
2019-09-09 22:05:07 +00:00
|
|
|
cleanup:
|
|
|
|
- /app/include
|
|
|
|
- /app/lib/*.a
|
|
|
|
- /app/lib/*.la
|
|
|
|
- /app/lib/pkgconfig
|
|
|
|
|
|
|
|
modules:
|
|
|
|
|
|
|
|
- name: fluidsynth
|
|
|
|
buildsystem: cmake-ninja
|
|
|
|
config-opts:
|
|
|
|
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
- -DLIB_SUFFIX=
|
|
|
|
sources:
|
|
|
|
- type: archive
|
|
|
|
url: https://github.com/FluidSynth/fluidsynth/archive/v1.1.11.tar.gz
|
|
|
|
sha256: da8878ff374d12392eecf87e96bad8711b8e76a154c25a571dd8614d1af80de8
|
|
|
|
|
2020-06-07 18:26:28 +00:00
|
|
|
|
|
|
|
# Music library behind zdoom
|
|
|
|
- name: zmusic
|
|
|
|
buildsystem: cmake-ninja
|
|
|
|
config-opts:
|
|
|
|
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
# Required for 19.08 using GCC C++ 9.2
|
|
|
|
# Required for ARM targets
|
|
|
|
- -DCMAKE_CXX_FLAGS=-lrt -ldl
|
|
|
|
sources:
|
|
|
|
- type: archive
|
|
|
|
url: https://github.com/coelckers/ZMusic/archive/1.1.0.tar.gz
|
|
|
|
sha256: 69255ddb62ecb238474bc57e3f761a593006a22eef90c4e786ef613d9a643b3a
|
|
|
|
|
2019-09-09 22:05:07 +00:00
|
|
|
# This builds both the application code and
|
|
|
|
# the custom game data
|
|
|
|
- name: gzdoom
|
|
|
|
buildsystem: cmake-ninja
|
|
|
|
config-opts:
|
|
|
|
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2019-09-18 11:48:55 +00:00
|
|
|
# Required for 19.08 using GCC C++ 9.2
|
2020-04-25 12:13:39 +00:00
|
|
|
# Required for ARM targets
|
|
|
|
- -DCMAKE_CXX_FLAGS=-lrt -ldl
|
2019-09-09 22:05:07 +00:00
|
|
|
sources:
|
2019-09-11 16:30:17 +00:00
|
|
|
- type: git
|
|
|
|
url: https://github.com/coelckers/gzdoom.git
|
2020-06-07 18:26:28 +00:00
|
|
|
tag: g4.4.0
|
|
|
|
commit: e98ef83837860c33720e827707d2cc0b4647ace6
|
2019-09-09 22:05:07 +00:00
|
|
|
- type: file
|
2020-01-21 16:27:04 +00:00
|
|
|
url: https://github.com/coelckers/gzdoom/raw/g4.3.3/soundfont/gzdoom.sf2
|
2019-09-09 22:05:07 +00:00
|
|
|
sha256: fca3e514b635a21789d4224e84865d2954a2a914d46b64aa8219ddb565c44869
|
2020-04-26 08:27:01 +00:00
|
|
|
# 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
|
2019-09-18 09:08:47 +00:00
|
|
|
- type: patch
|
|
|
|
path: description.patch
|
2019-09-09 22:05:07 +00:00
|
|
|
- type: shell
|
|
|
|
commands:
|
|
|
|
- install -Dm 644 gzdoom.sf2 /app/share/sounds/sf2/gzdoom.sf2
|
|
|
|
|
|
|
|
- name: launcher
|
|
|
|
buildsystem: simple
|
|
|
|
sources:
|
|
|
|
- type: script
|
|
|
|
commands:
|
2019-09-10 16:28:48 +00:00
|
|
|
- gzdoom +fluid_patchset /app/share/sounds/sf2/gzdoom.sf2 -file lights.pk3 brightmaps.pk3 "$@"
|
2019-09-09 22:05:07 +00:00
|
|
|
dest-filename: gzdoom.sh
|
|
|
|
- type: file
|
|
|
|
path: org.zdoom.GZDoom.desktop
|
|
|
|
- type: file
|
|
|
|
path: org.zdoom.GZDoom.appdata.xml
|
|
|
|
- type: file
|
2019-09-23 10:58:55 +00:00
|
|
|
path: org.zdoom.GZDoom.48.png
|
|
|
|
- type: file
|
|
|
|
path: org.zdoom.GZDoom.64.png
|
|
|
|
- type: file
|
|
|
|
path: org.zdoom.GZDoom.128.png
|
2019-09-09 22:05:07 +00:00
|
|
|
build-commands:
|
|
|
|
- install -D gzdoom.sh /app/bin/gzdoom.sh
|
|
|
|
- install -Dm 644 org.zdoom.GZDoom.desktop -t /app/share/applications
|
2019-09-10 16:05:53 +00:00
|
|
|
- install -Dm 644 org.zdoom.GZDoom.appdata.xml -t /app/share/metainfo
|
2019-09-23 10:58:55 +00:00
|
|
|
- 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
|