From 88f00e909d9dd73540fab4b0263c135550c19b77 Mon Sep 17 00:00:00 2001 From: AshenColors <3249074+AshenColors@users.noreply.github.com> Date: Fri, 17 May 2024 23:41:06 -0400 Subject: [PATCH] Update Flatpak manifest to use clang and include the default soundpack (#73818) * Add default soundpack to flatpak build * make default Flatpak branch 'experimental' --- org.cataclysmdda.CataclysmDDA.json | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/org.cataclysmdda.CataclysmDDA.json b/org.cataclysmdda.CataclysmDDA.json index 8d7f81af877..633105d6b04 100644 --- a/org.cataclysmdda.CataclysmDDA.json +++ b/org.cataclysmdda.CataclysmDDA.json @@ -1,8 +1,12 @@ { "id": "org.cataclysmdda.CataclysmDDA", + "default-branch": "experimental", "runtime": "org.freedesktop.Platform", "runtime-version": "22.08", "sdk": "org.freedesktop.Sdk", + "sdk-extensions": [ + "org.freedesktop.Sdk.Extension.llvm16" + ], "command": "cataclysm-tiles", "finish-args": [ "--socket=pulseaudio", @@ -16,10 +20,27 @@ "name": "cataclysm-tiles", "buildsystem": "simple", "build-options": { - "env": { "MAKE_ARGS": "PREFIX=/app LANGUAGES=all USE_XDG_DIR=1 TILES=1 SOUND=1 RELEASE=1 TESTS=0 ASTYLE=0 LINTJSON=0" } + "append-path": "/usr/lib/sdk/llvm16/bin", + "prepend-ld-library-path": "/usr/lib/sdk/llvm16/lib", + "env": { + "MAKE_ARGS": "PREFIX=/app LANGUAGES=all CLANG=1 CCACHE=1 USE_XDG_DIR=1 TILES=1 SOUND=1 RELEASE=1 TESTS=0 ASTYLE=0 LINTJSON=0" + } }, - "build-commands": [ "make -j $FLATPAK_BUILDER_N_JOBS $MAKE_ARGS", "make $MAKE_ARGS localization", "make $MAKE_ARGS install" ], - "sources": [ { "type": "git", "url": "https://github.com/CleverRaven/Cataclysm-DDA", "branch": "master" } ] + "build-commands": [ + "mv soundpack/sound/CC-Sounds/ data/sound/", + "make -j $FLATPAK_BUILDER_N_JOBS $MAKE_ARGS", + "make $MAKE_ARGS localization", + "make $MAKE_ARGS install" + ], + "sources": [ + { "type": "git", "url": "https://github.com/CleverRaven/Cataclysm-DDA", "branch": "master" }, + { + "type": "git", + "url": "https://github.com/Fris0uman/CDDA-Soundpacks", + "branch": "main", + "dest": "soundpack" + } + ] } ] }