{
 "app_id": "org.ioquake3.ioquake3",
 "source_url": "https://raw.githubusercontent.com/flathub/org.ioquake3.ioquake3/master/org.ioquake3.ioquake3.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=all"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:15:21.276278+00:00",
 "manifest": {
  "id": "org.ioquake3.ioquake3",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "ioquake3",
  "finish-args": [
   "--socket=pulseaudio",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--device=all"
  ],
  "modules": [
   {
    "name": "ioquake3",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "BUILD_SERVER": "0",
      "COPYDIR": "/app/games/quake3"
     },
     "arch": {
      "x86_64": {
       "env": {
        "IOQ3_ARCH": "x86_64"
       }
      },
      "aarch64": {
       "env": {
        "IOQ3_ARCH": "arm64"
       }
      }
     }
    },
    "build-commands": [
     "make -j $FLATPAK_BUILDER_N_JOBS copyfiles",
     "mv /app/games/quake3/ioquake3{.${IOQ3_ARCH},}",
     "install -Dm644 misc/quake3.svg /app/share/icons/hicolor/scalable/apps/org.ioquake3.ioquake3.svg",
     "install -Dm644 misc/setup/ioquake3.desktop /app/share/applications/org.ioquake3.ioquake3.desktop",
     "desktop-file-edit --set-key=Icon --set-value=org.ioquake3.ioquake3 /app/share/applications/org.ioquake3.ioquake3.desktop",
     "install -Dm644 misc/setup/org.ioquake3.ioquake3.metainfo.xml -t /app/share/metainfo",
     "install -Dm744 ioquake3 -t /app/bin"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ioquake/ioq3.git",
      "commit": "ab18167a09415e9e9f4859c197bad72ec39807d5"
     },
     {
      "type": "patch",
      "path": "ioquake3_appstream.patch"
     },
     {
      "type": "file",
      "path": "ioquake3"
     }
    ]
   }
  ]
 }
}