Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Alexander-Wilms/e7f81f8f1662fdf8566a096e453cf0e5 to your computer and use it in GitHub Desktop.
Save Alexander-Wilms/e7f81f8f1662fdf8566a096e453cf0e5 to your computer and use it in GitHub Desktop.
app-id: com.realm667.Wolfenstein_Blade_of_Agony
runtime: org.freedesktop.Platform
sdk: org.freedesktop.Sdk
runtime-version: '20.08'
command: gzdoom.sh
rename-icon: m_doom
finish-args:
- --device=all
- --socket=wayland
- --socket=x11
- --share=ipc
- --socket=pulseaudio
- --env=DOOMWADDIR=/app/share/games/doom
- --env=KDE_FULL_SESSION= # without this, gzdoom tries to use kdialog for error messages when using KDE
- --persist=.config/gzdoom
cleanup:
- /include
- /lib/*.a
- /lib/*.la
- /lib/pkgconfig
- /share/man
- /share/doc
modules:
- name: p7zip # required to assemble wolf_boa.ipk3
no-autogen: true
make-args:
- 7z
cleanup:
- "*"
sources:
- type: archive
url: https://github.com/jinfeihan57/p7zip/archive/v17.03.tar.gz
sha256: bb4b9b21584c0e076e0b4b2705af0dbe7ac19d378aa7f09a79da33a5b3293187
- type: shell
commands:
- sed -i 's|/usr/local|/app|g' makefile.common
- name: wolfenstein
buildsystem: simple
sources:
- type: git
url: https://github.com/Realm667/WolfenDoom
commit: e875fa16001858515ce55862596925b439cddb5f
- type: file
path: m_doomxl-48x48.png # taken from https://github.com/Realm667/WolfenDoom/blob/master/graphics/general/m_doom.png
- type: file
path: m_doomxl-64x64.png
- type: file
path: m_doomxl-128x128.png
build-commands:
# 7z command taken from https://github.com/Realm667/WolfenDoom/blob/master/build.sh
- 7z a -tzip -mmt=on -mm='LZMA' -mx=9 -ssc -xr@'tools/7za/7zExcludeList.txt' -x@'tools/7za/7zExcludeListDir.txt' wolf_boa.ipk3 *
- install -Dm 644 wolf_boa.ipk3 -t /app/share/games/doom
- desktop-file-edit --set-key=Exec --set-value=gzdoom.sh dist/com.realm667.WolfenDoom_Blade_of_Agony.desktop
- desktop-file-edit --set-key=StartupWMClass --set-value=gzdoom dist/com.realm667.WolfenDoom_Blade_of_Agony.desktop
- install -Dm 644 dist/com.realm667.WolfenDoom_Blade_of_Agony.desktop /app/share/applications/com.realm667.Wolfenstein_Blade_of_Agony.desktop
- install -Dm 644 dist/com.realm667.WolfenDoom_Blade_of_Agony.appdata.xml /app/share/appdata/com.realm667.Wolfenstein_Blade_of_Agony.appdata.xml
- install -Dm 644 m_doomxl-48x48.png /app/share/icons/hicolor/48x48/apps/m_doom.png
- install -Dm 644 m_doomxl-64x64.png /app/share/icons/hicolor/64x64/apps/m_doom.png
- install -Dm 644 m_doomxl-128x128.png /app/share/icons/hicolor/128x128/apps/m_doom.png
- name: fluidsynth # build dependency of gzdoom
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DLIB_SUFFIX=
sources:
- type: archive
url: https://github.com/FluidSynth/fluidsynth/archive/v2.1.6.tar.gz
sha256: 328fc290b5358544d8dea573f81cb1e97806bdf49e8507db067621242f3f0b8a
- name: zmusic # build dependency of gzdoom
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
sources:
- type: archive
url: https://github.com/coelckers/ZMusic/archive/1.1.4.tar.gz
sha256: 29a18a6a8d0db4978a9d5badbbd612be2337d64ef0d768e944ea70f526eae285
- name: gzdoom
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
sources:
- type: git # use git because wadsrc_widescreen/static is a git module which is not included in the archive
url: https://github.com/coelckers/gzdoom # latest gzdoom needed to have disableskyboxao
#tag: g4.5.0
#commit: 3037c08840f209f9f6b6d7e6c2c69632472a5d54
- type: script
commands:
- gzdoom -iwad wolf_boa.ipk3 +fluid_patchset /app/share/sounds/sf2/gzdoom.sf2 -file lights.pk3 brightmaps.pk3 game_widescreen_gfx.pk3 "$@"
dest-filename: gzdoom.sh
build-commands:
- install -Dm 644 soundfont/gzdoom.sf2 /app/share/sounds/sf2/gzdoom.sf2
- install -D gzdoom.sh /app/bin/gzdoom.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment