{
 "app_id": "io.github.maddecoder.Classic-RBDOOM-3-BFG",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.maddecoder.Classic-RBDOOM-3-BFG/master/io.github.maddecoder.Classic-RBDOOM-3-BFG.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=x11",
  "--device=all",
  "--filesystem=~/.var/app/com.valvesoftware.Steam:ro",
  "--filesystem=~/.var/app/net.lutris.Lutris:ro",
  "--filesystem=/media:ro",
  "--filesystem=home:ro",
  "--filesystem=/run/media:ro",
  "--filesystem=~/.var/app/com.heroicgameslauncher.hgl:ro",
  "--filesystem=/mnt:ro"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T16:11:36.588887+00:00",
 "manifest": {
  "app-id": "io.github.maddecoder.Classic-RBDOOM-3-BFG",
  "runtime": "org.freedesktop.Platform",
  "sdk": "org.freedesktop.Sdk",
  "runtime-version": "25.08",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.dotnet10"
  ],
  "build-options": {
   "prepend-path": "/usr/lib/sdk/dotnet10/bin",
   "append-ld-library-path": "/usr/lib/sdk/dotnet10/lib",
   "prepend-pkg-config-path": "/usr/lib/sdk/dotnet10/lib/pkgconfig"
  },
  "command": "DOOMBFA.sh",
  "finish-args": [
   "--device=all",
   "--socket=wayland",
   "--socket=x11",
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio",
   "--filesystem=~/.var/app/com.valvesoftware.Steam:ro",
   "--filesystem=~/.var/app/net.lutris.Lutris:ro",
   "--filesystem=~/.var/app/com.heroicgameslauncher.hgl:ro",
   "--persist=.doombfa",
   "--filesystem=home:ro",
   "--filesystem=/run/media:ro",
   "--filesystem=/media:ro",
   "--filesystem=/mnt:ro",
   "--env=KDE_FULL_SESSION=false",
   "--env=DOTNET_ROOT=/app/lib/dotnet"
  ],
  "cleanup": [
   "/include",
   "/lib/*.a",
   "/lib/*.la",
   "/lib/pkgconfig",
   "/lib/cmake",
   "/share/man",
   "/share/doc",
   "/share/ffmpeg",
   "/bin/al*",
   "/bin/openal*",
   "/lib/cmake/OpenAL"
  ],
  "modules": [
   {
    "name": "FFMPEG",
    "no-autogen": true,
    "config-opts": [
     "--disable-x86asm",
     "--enable-shared",
     "--disable-large-tests",
     "--enable-linux-perf",
     "--disable-debug",
     "--disable-programs",
     "--quiet"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/FFmpeg/FFmpeg.git",
      "tag": "n8.0.1",
      "commit": "894da5ca7d742e4429ffb2af534fcda0103ef593"
     }
    ]
   },
   {
    "name": "OpenAL-Soft",
    "buildsystem": "cmake-ninja",
    "no-autogen": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/kcat/openal-soft.git",
      "tag": "1.25.1",
      "commit": "c41d64c6a35f6174bf4a27010aeac52a8d3bb2c6"
     }
    ]
   },
   {
    "name": "dotnet",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/dotnet10/bin/install.sh"
    ]
   },
   {
    "name": "CRBDL",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/MadDeCoDeR/CRBDL.git",
      "tag": "1.0.17.13",
      "commit": "f7381cbea9821f27e1af134c7869f8e832fdf8e1"
     },
     "./nuget-sources.json"
    ],
    "build-commands": [
     "dotnet publish ./dbfal/dbfal.csproj -c Release --no-self-contained --source ./nuget-sources",
     "mkdir -p ${FLATPAK_DEST}/bin",
     "cp -r dbfal/bin/Release/net10.0/linux-x64/publish/* ${FLATPAK_DEST}/bin"
    ]
   },
   {
    "name": "DoomBFA",
    "buildsystem": "cmake-ninja",
    "subdir": "neo",
    "builddir": true,
    "no-make-install": true,
    "config-opts": [
     "--preset=linux-retail",
     "-B .",
     "-DMAKE_DLL=OFF",
     "-DPACKAGED=ON",
     "-DUSE_VCPKG=OFF",
     "-DALL_STATIC=OFF",
     "-DFFMPEG_FOUND=true",
     "-DFFMPEG_AVCODEC_INCLUDE_DIR=/app/include",
     "-DFFMPEG_LIBAVCODEC=/app/lib/libavcodec.so",
     "-DFFMPEG_LIBAVFORMAT=/app/lib/libavformat.so",
     "-DFFMPEG_LIBAVUTIL=/app/lib/libavutil.so",
     "-DFFMPEG_LIBSWRESAMPLE=/app/lib/libswresample.so",
     "-DFFMPEG_LIBSWSCALE=/app/lib/libswscale.so",
     "-DOPENAL_FOUND=true",
     "-DOPENAL_INCLUDE_DIR=/app/include",
     "-DOPENAL_LIBRARY=/app/lib/libopenal.so",
     "-DOPENAL_VERSION_STRING=1.25.1",
     "-DUSE_SYSTEM_LIBPNG=false",
     "-DUSE_SYSTEM_RAPIDJSON=false",
     "-DUSE_OPENXR=OFF",
     "-DIGNORE_IMPORTED_CONFIG=ON"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/MadDeCoDeR/Classic-RBDOOM-3-BFG.git",
      "tag": "v1.4.3",
      "commit": "28fdd848aad94af7155a3c594b5c232a6ee80662",
      "disable-submodules": true
     }
    ],
    "modules": [
     "shared-modules/glew/glew.json",
     "shared-modules/glu/glu-9.json"
    ],
    "build-commands": [
     "install -Dm 755 DoomBFA /app/bin/DoomBFA",
     "mkdir -p /app/share/games/doombfa",
     "cp -R ../../base /app/share/games/doombfa/base",
     "cp -R ../../base_new /app/share/games/doombfa/base_NEW",
     "cp ../../alsoft.conf /app/share/games/doombfa/alsoft.conf",
     "rm /app/share/games/doombfa/base/generate_zBFA_s1.cfg",
     "rm /app/share/games/doombfa/base/generate_zBFA_s2.cfg",
     "rm /app/share/games/doombfa/base/DoomBFA.sh",
     "rm -r /app/share/games/doombfa/base/renderprogs"
    ]
   },
   {
    "name": "DoomBFA-assets",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "extra-data",
      "filename": "BFA-Assets.zip",
      "url": "https://github.com/MadDeCoDeR/BFA-Assets/archive/refs/tags/1.4.1.zip",
      "sha256": "0eacd405a7a8bde7dbfd9783dad72ef85b50a721fc396f5133db96957ce2d4c5",
      "size": 179339,
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/MadDeCoDeR/BFA-Assets/releases/latest",
       "tag-query": ".tag_name",
       "version-query": "$tag",
       "timestamp-query": ".published_at",
       "url-query": ".assets[] | .browser_download_url"
      }
     },
     {
      "type": "file",
      "path": "Classic-RBDOOM-3-BFG.appdata.xml"
     },
     {
      "type": "file",
      "path": "DOOMBFA.desktop"
     },
     {
      "type": "file",
      "path": "doom.png"
     },
     {
      "type": "file",
      "path": "DOOMBFA.sh"
     },
     {
      "type": "file",
      "path": "apply_extra.sh"
     }
    ],
    "build-commands": [
     "install -Dm 644 DOOMBFA.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm 644 doom.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png",
     "install -Dm 755 apply_extra.sh /app/bin/apply_extra",
     "install -Dm 644 Classic-RBDOOM-3-BFG.appdata.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm 755 DOOMBFA.sh /app/bin/DOOMBFA.sh"
    ]
   }
  ]
 }
}