app-id: net.shadps4.shadPS4 runtime: org.kde.Platform runtime-version: '6.8' sdk: org.kde.Sdk command: shadps4 finish-args: # gamepad and 3D hardware support - --device=all - --allow=bluetooth # Wayland + fallback - --socket=wayland - --socket=fallback-x11 - --share=ipc # Audio - --socket=pulseaudio - --talk-name=org.kde.StatusNotifierWatcher # Reading the game list is very slow through the XDG portal # More filesystem overrides may need to be added by users # depending on where they store their games but these # are reasonable defaults for direct access. - --share=network - --filesystem=home - --filesystem=/media - --filesystem=/run/media sdk-extensions: - org.freedesktop.Sdk.Extension.llvm18 add-extensions: org.freedesktop.Platform.ffmpeg-full: directory: lib/ffmpeg add-ld-path: . version: '24.08' no-autodownload: false autodelete: false cleanup-commands: - mkdir -p ${FLATPAK_DEST}/lib/ffmpeg # Remove XML warning https://github.com/flatpak/flatpak/issues/6057 - rm -f ${FLATPAK_DEST}/share/metainfo/releases/net.shadps4.shadPS4.releases.xml modules: - name: rapidjson buildsystem: cmake-ninja config-opts: - -DRAPIDJSON_BUILD_DOC=OFF - -DRAPIDJSON_BUILD_EXAMPLES=OFF - -DRAPIDJSON_BUILD_TESTS=OFF - -DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF sources: - type: archive url: https://api.github.com/repos/Tencent/rapidjson/zipball/v1.1.0 dest-filename: rapidjson.zip sha256: 7fb9f29b86f6842a6f67ebdf6b56b3fc25671b3bca50448e1505f47f37eb19d5 x-checker-data: type: json url: https://api.github.com/repos/tencent/rapidjson/releases/latest version-query: .tag_name url-query: .zipball_url cleanup: - '*' - name: shadps4 buildsystem: cmake-ninja builddir: true build-options: append-path: /usr/lib/sdk/llvm18/bin prepend-ld-library-path: /usr/lib/sdk/llvm18/lib config-opts: - -DENABLE_UPDATER=OFF - -DENABLE_QT_GUI=ON - -DCMAKE_C_COMPILER=clang - -DCMAKE_CXX_COMPILER=clang++ - -DCMAKE_BUILD_TYPE=RelWithDebInfo - -DCMAKE_INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO=ON sources: # We're using a git source here rather than a zipball because zip/tarballs # don't include submodules, which shadps4 depends on (in the externals directory) - type: git url: https://github.com/shadps4-emu/shadPS4 tag: v.0.5.0 x-checker-data: type: json url: https://api.github.com/repos/shadps4-emu/shadps4/releases/latest tag-query: .tag_name version-query: .tag_name | sub("^v."; "") # Use updated metainfo.xml with inline releases from main branch https://github.com/flatpak/flatpak/issues/6057 - type: file url: https://raw.githubusercontent.com/shadps4-emu/shadPS4/af8c748e9cb3edc78a3f0e189fbba41bfdba0786/dist/net.shadps4.shadPS4.metainfo.xml sha256: "b3c45ef60748c7f791ef932a461b86990b380ca527d92d5474d65e3620297566" dest: dist