{
 "app_id": "org.sauerbraten.Sauerbraten",
 "source_url": "https://raw.githubusercontent.com/flathub/org.sauerbraten.Sauerbraten/master/org.sauerbraten.Sauerbraten.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": 2,
 "fetched_at": "2026-09-17T16:16:26.903820+00:00",
 "manifest": {
  "id": "org.sauerbraten.Sauerbraten",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "sauerbraten",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--persist=.sauerbraten"
  ],
  "modules": [
   "shared-modules/SDL2/SDL2_image.json",
   {
    "name": "sauerbraten",
    "no-autogen": true,
    "no-make-install": true,
    "subdir": "src",
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/sauerbraten/files/sauerbraten/2020_11_29/sauerbraten_2020_12_29_linux.tar.bz2",
      "sha256": "cdba7c4a47cefd30d0afdd6a912199a1384319cf1619923cb7189e72e468be70"
     },
     {
      "type": "file",
      "path": "sauerbraten.sh"
     },
     {
      "type": "file",
      "path": "sauerbraten_server.sh"
     },
     {
      "type": "file",
      "path": "org.sauerbraten.Sauerbraten.desktop"
     },
     {
      "type": "file",
      "path": "org.sauerbraten.Sauerbraten.metainfo.xml"
     },
     {
      "type": "patch",
      "path": "makefile-modernisation.patch"
     }
    ],
    "post-install": [
     "install -Dm755 ../sauerbraten.sh /app/bin/sauerbraten",
     "install -Dm755 ../sauerbraten_server.sh /app/bin/sauerbraten_server",
     "install -Dm755 sauer_client /app/share/sauerbraten/sauerbraten",
     "install -Dm755 sauer_server /app/share/sauerbraten/sauerbraten_server",
     "cp -a ../data ../packages /app/share/sauerbraten",
     "install -Dm644 ../data/cube.png /app/share/icons/hicolor/256x256/apps/org.sauerbraten.Sauerbraten.png",
     "install -Dm644 ../org.sauerbraten.Sauerbraten.desktop /app/share/applications/org.sauerbraten.Sauerbraten.desktop",
     "install -Dm644 ../org.sauerbraten.Sauerbraten.metainfo.xml /app/share/metainfo/org.sauerbraten.Sauerbraten.metainfo.xml"
    ]
   }
  ]
 }
}