{
 "app_id": "net.unvanquished.Unvanquished",
 "source_url": "https://raw.githubusercontent.com/flathub/net.unvanquished.Unvanquished/master/net.unvanquished.Unvanquished.yml",
 "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=dri"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:13:57.050724+00:00",
 "manifest": {
  "app-id": "net.unvanquished.Unvanquished",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "unvanquished",
  "finish-args": [
   "--share=network",
   "--socket=pulseaudio",
   "--device=dri",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc"
  ],
  "cleanup": [
   "/share/doc"
  ],
  "modules": [
   "shared-modules/glew/glew.json",
   {
    "name": "unvanquished-assets",
    "buildsystem": "simple",
    "build-commands": [
     "mv pkg /app/pkg"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://dl.unvanquished.net/release/unvanquished_0.56.2.zip",
      "sha512": "4d453e2991f433fe49aa0f767c842298dc71691640beb4d905ef9984fb9cdc08078dd037bdb35662800c9546dcf1234453a850f1164ca42e2521474c1fa70830"
     }
    ]
   },
   {
    "name": "daemon",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_GAME_NACL=FALSE",
     "-DBUILD_GAME_NACL_NEXE=FALSE",
     "-DBUILD_GAME_NATIVE_DLL=FALSE",
     "-DBUILD_GAME_NATIVE_EXE=FALSE",
     "-DBUILD_TTY_CLIENT=FALSE",
     "-DBUILD_SERVER=FALSE",
     "-DUSE_EXTERNAL_DEPS_LIBS=FALSE",
     "-DUSE_CURSES=TRUE",
     "-DUSE_CURSES_NCURSES=FALSE",
     "-DUSE_HARDENING=TRUE",
     "-DUSE_LTO=TRUE",
     "-DUSE_OPENMP=TRUE"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/DaemonEngine/Daemon.git",
      "tag": "unvanquished/0.56.2"
     },
     {
      "type": "file",
      "path": "net.unvanquished.Unvanquished.metainfo.xml"
     },
     {
      "type": "file",
      "path": "net.unvanquished.Unvanquished.desktop"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/Unvanquished/Unvanquished/e1b0a1f9a7306126940dffb94d6ced036fe970b2/dist/icons/512x512/unvanquished.png",
      "sha256": "d49b6edb49917f7a87497129e8e71ce396027361016fac01c093fb5564f7dee1"
     },
     {
      "type": "archive",
      "dest": "external_deps/linux-amd64-default_11",
      "url": "https://dl.unvanquished.net/deps/linux-amd64-default_11.tar.xz",
      "sha512": "02524ccb4e2fdbb36c052fb527ed42e1424a07b182bbd13d23ee0f763f45331ef33455893763bd691d7b1ee480013e4e2385a59438c691aec3d860cd8f6c4999"
     }
    ],
    "no-make-install": true,
    "post-install": [
     "for f in daemon nacl_loader nacl_helper_bootstrap; do\n  install -Dm0755 -t /app/lib/ $f\ndone\n",
     "install -Dm0644 -t /app/lib/ irt_core-amd64.nexe",
     "install -Dm0644 -t /app/share/applications/ net.unvanquished.Unvanquished.desktop",
     "install -Dm0644 -t /app/share/metainfo/ net.unvanquished.Unvanquished.metainfo.xml",
     "install -Dm0644 unvanquished.png /app/share/icons/hicolor/512x512/apps/$FLATPAK_ID.png"
    ]
   },
   {
    "name": "unvanquished",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm0755 -t /app/bin/ unvanquished"
    ],
    "sources": [
     {
      "type": "script",
      "commands": [
       "/app/lib/daemon -pakpath /app/pkg \"$@\""
      ],
      "dest-filename": "unvanquished"
     }
    ]
   }
  ]
 }
}