{
 "app_id": "org.zdoom.UZDoom",
 "source_url": "https://raw.githubusercontent.com/flathub/org.zdoom.UZDoom/master/org.zdoom.UZDoom.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--device=dri",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=~/snap/steam/common/.local/share/Steam/steamapps:ro",
  "--filesystem=~/.var/app/com.valvesoftware.Steam/data/Steam/steamapps:ro",
  "--filesystem=~/.local/share/Steam/steamapps:ro"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:16:57.237304+00:00",
 "manifest": {
  "app-id": "org.zdoom.UZDoom",
  "runtime": "org.freedesktop.Platform",
  "sdk": "org.freedesktop.Sdk",
  "runtime-version": "25.08",
  "command": "uzdoom",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/pipewire-0",
   "--device=all",
   "--share=network",
   "--filesystem=~/.var/app/com.valvesoftware.Steam/data/Steam/steamapps:ro",
   "--filesystem=~/.local/share/Steam/steamapps:ro",
   "--filesystem=~/snap/steam/common/.local/share/Steam/steamapps:ro"
  ],
  "cleanup": [
   "*.a",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/doc",
   "/share/man"
  ],
  "modules": [
   "shared-modules/linux-audio/libinstpatch.json",
   "shared-modules/linux-audio/fluidsynth2.json",
   {
    "name": "uzdoom",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_CXX_FLAGS=-DSHARE_DIR=\\\"/app/share\\\"",
     "-DBUILD_FLATPAK=ON"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/UZDoom/UZDoom",
      "tag": "5.0.1",
      "commit": "b92a83674b76c295a51c2ca21ee9b3085526fecb",
      "disable-shallow-clone": true,
      "x-checker-data": {
       "type": "git",
       "version-scheme": "semantic"
      }
     }
    ],
    "post-install": [
     "sed -i '/<mime-type type=\"application\\/x-doom-wad\">/,/<\\/mime-type>/d' /app/share/mime/packages/${FLATPAK_ID}-mime.xml"
    ]
   }
  ]
 }
}