{
 "app_id": "io.github.ezQuake",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.ezQuake/master/io.github.ezQuake.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:11:00.302231+00:00",
 "manifest": {
  "app-id": "io.github.ezQuake",
  "runtime": "org.freedesktop.Platform",
  "sdk": "org.freedesktop.Sdk",
  "runtime-version": "26.08",
  "command": "ezquake.sh",
  "finish-args": [
   "--device=dri",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio",
   "--persist=.ezquake"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "jansson",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/akheron/jansson/archive/v2.15.1.tar.gz",
      "sha256": "dbf95cb0af903f4fb8b61507d96b45b67db7d1479688ede352e1d571394d06f7",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1417,
       "url-template": "https://github.com/akheron/jansson/archive/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "minizip",
    "subdir": "contrib/minizip",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/madler/zlib/archive/refs/tags/v1.3.1.tar.gz",
      "sha256": "17e88863f3600672ab49182f217281b6fc4d3c762bde361935e436a95214d05c"
     },
     {
      "type": "script",
      "dest": "contrib/minizip/",
      "dest-filename": "autogen.sh",
      "commands": [
       "autoreconf -ifv"
      ]
     }
    ]
   },
   {
    "name": "ezQuake",
    "buildsystem": "simple",
    "build-commands": [
     "cmake --preset dynamic",
     "cmake --build build-dynamic --config Release",
     "install -Dm 744 build-dynamic/Release/ezquake-linux-${FLATPAK_ARCH} /app/bin/ezquake-linux",
     "install -Dm 644 dist/linux/io.github.ezQuake.desktop -t /app/share/applications",
     "install -Dm 644 dist/linux/io.github.ezQuake.128.png /app/share/icons/hicolor/128x128/apps/io.github.ezQuake.png"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/QW-Group/ezquake-source",
      "tag": "3.6.9",
      "commit": "b2d448f2c5ac4be4ec40c03dcc9a018c1f837deb",
      "x-checker-data": {
       "type": "git",
       "is-main-source": true,
       "tag-pattern": "^([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "ezquake-data",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/share",
     "mv ezquake /app/share/ezquake",
     "mv id1 /app/share/id1",
     "mv qw /app/share/qw",
     "rm /app/share/id1/'copy your pak0.pak and pak1.pak files here.txt'",
     "install -Dm 644 io.github.ezQuake.appdata.xml -t /app/share/metainfo"
    ],
    "sources": [
     {
      "type": "file",
      "path": "io.github.ezQuake.appdata.xml"
     },
     {
      "type": "archive",
      "strip-components": 0,
      "url": "https://github.com/QW-Group/ezquake-source/releases/download/3.2.3/ezquake-ubuntu-3.2.3-full.tar.gz",
      "sha256": "d58f26ed912166615420f0d0b208a10fd2539a84b90e85edfcb1aedc94615af5"
     }
    ]
   },
   {
    "name": "launcher",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm 744 ezquake.sh -t /app/bin"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "ezquake.sh",
      "commands": [
       "cp -R /app/share/ezquake ~/.ezquake/",
       "cp -R /app/share/id1 ~/.ezquake/",
       "cp -R /app/share/qw ~/.ezquake/",
       "mkdir -p ~/.ezquake/fortress",
       "mkdir -p ~/.ezquake/hipnotic",
       "mkdir -p ~/.ezquake/rogue",
       "ls ~/.ezquake/id1/pak0.pak || ls ~/.ezquake/id1/PAK0.PAK || zenity --error --text \"Game data pak0.pak and pak1.pak must be added to:\\n~/.var/app/io.github.ezQuake/.ezquake/id1/\" --ok-label \"Close\" --width=400",
       "if [ -f ~/.ezquake/config.cfg ]; then",
       "mkdir -p ~/.ezquake/ezquake/configs/",
       "mv ~/.ezquake/config.cfg ~/.ezquake/ezquake/configs/config.cfg",
       "sed -i 's|\\(cfg_use_home\\s*\\)\\(\"1\"\\)|\\1\"0\"|g' ~/.ezquake/ezquake/configs/config.cfg",
       "fi",
       "/app/bin/ezquake-linux \"$@\" -basedir ~/.var/app/io.github.ezQuake/.ezquake"
      ]
     }
    ]
   }
  ]
 }
}