{
 "app_id": "com.teeworlds.Teeworlds",
 "source_url": "https://raw.githubusercontent.com/flathub/com.teeworlds.Teeworlds/master/com.teeworlds.Teeworlds.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=all"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:08:54.832496+00:00",
 "manifest": {
  "app-id": "com.teeworlds.Teeworlds",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "teeworlds",
  "rename-icon": "teeworlds",
  "finish-args": [
   "--device=all",
   "--persist=.teeworlds",
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--socket=pulseaudio"
  ],
  "modules": [
   "shared-modules/lua5.3/lua-5.3.5.json",
   "shared-modules/glu/glu-9.json",
   {
    "name": "bam",
    "no-autogen": true,
    "no-parallel-make": true,
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/matricks/bam/archive/v0.5.1.tar.gz",
      "sha256": "cc8596af3325ecb18ebd6ec2baee550e82cb7b2da19588f3f843b02e943a15a9"
     },
     {
      "type": "patch",
      "path": "patches/bam-destdir.patch"
     }
    ]
   },
   {
    "name": "teeworlds",
    "buildsystem": "simple",
    "build-options": {
     "arch": {
      "aarch64": {
       "env": {
        "BAM_ARGS": "arch=aarch64"
       }
      }
     }
    },
    "build-commands": [
     "bam -a -v conf=release $BAM_ARGS",
     "install -Dm755 buildrelease/teeworlds_srv /app/bin/teeworlds_srv",
     "cp -a build/*/release/data /app/share/teeworlds",
     "install -Dm644 com.teeworlds.Teeworlds.desktop -t /app/share/applications/",
     "install -Dm644 com.teeworlds.Teeworlds.appdata.xml -t /app/share/metainfo/",
     "install -Dm644 teeworlds.png -t /app/share/icons/hicolor/256x256/apps/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/teeworlds/teeworlds/releases/download/0.7.5/teeworlds-0.7.5-src.tar.gz",
      "sha256": "fcde2223398e027434ec96315103e9861fc458161b49b15908dc56b8e7a8ecd9"
     },
     {
      "type": "patch",
      "path": "patches/teeworlds-set-data-dir.patch"
     },
     {
      "type": "patch",
      "path": "patches/aarch64.patch"
     },
     {
      "type": "file",
      "path": "com.teeworlds.Teeworlds.desktop"
     },
     {
      "type": "file",
      "path": "com.teeworlds.Teeworlds.appdata.xml"
     },
     {
      "type": "file",
      "path": "teeworlds.png"
     }
    ]
   }
  ]
 }
}