{
 "app_id": "in.p1x.TanksOfFreedom",
 "source_url": "https://raw.githubusercontent.com/flathub/in.p1x.TanksOfFreedom/master/in.p1x.TanksOfFreedom.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.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:10:04.899225+00:00",
 "manifest": {
  "app-id": "in.p1x.TanksOfFreedom",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm19"
  ],
  "command": "tanksoffreedom",
  "finish-args": [
   "--socket=x11",
   "--socket=pulseaudio",
   "--persist=.godot",
   "--share=ipc",
   "--share=network",
   "--device=all"
  ],
  "modules": [
   {
    "name": "scons",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm19/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm19/lib"
    },
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/project/scons/scons/3.1.2/scons-3.1.2.tar.gz",
      "sha256": "7801f3f62f654528e272df780be10c0e9337e897650b62ddcee9f39fde13f8fb"
     }
    ],
    "build-commands": [
     "python setup.py install --prefix=${FLATPAK_DEST} --optimize=1"
    ]
   },
   "shared-modules/glu/glu-9.json",
   {
    "name": "godot",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/llvm19/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm19/lib"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/godotengine/godot/archive/2.1.6-stable.tar.gz",
      "sha256": "5bfc57f2ee24dccfdcefe491a3be1a07b39299f2fcfa03202b8b4c6c2dd5122b"
     }
    ],
    "build-commands": [
     "scons platform=x11 CCFLAGS=\"-I${C_INCLUDE_PATH} -Wno-register\" prefix=${FLATPAK_DEST} unix_global_settings_path=${FLATPAK_DEST} verbose=yes -j $FLATPAK_BUILDER_N_JOBS target=release_debug use_llvm=yes builtin_freetype=no builtin_libmpcdec=yes builtin_libogg=no builtin_libpng=no builtin_libtheora=no builtin_libvorbis=no builtin_libwebp=no builtin_libvpx=no builtin_zlib=no builtin_opus=yes builtin_speex=yes builtin_squish=yes pulseaudio=yes udev=no tools=no",
     "install -D -m755 bin/godot* ${FLATPAK_DEST}/bin/godot-bin"
    ]
   },
   {
    "name": "tanksoffreedom",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/w84death/Tanks-of-Freedom/archive/0.7.1-beta.tar.gz",
      "sha256": "5af5471f0c2a85f4bad91dff395d7575c4ef6a6707e9ede3882661216d7497db"
     },
     {
      "type": "file",
      "path": "in.p1x.TanksOfFreedom.appdata.xml"
     },
     {
      "type": "file",
      "path": "in.p1x.TanksOfFreedom.desktop"
     },
     {
      "type": "script",
      "dest-filename": "tanksoffreedom.sh",
      "commands": [
       "exec /app/bin/godot-bin -path /app/tanksoffreedom \"$@\""
      ]
     }
    ],
    "buildsystem": "simple",
    "post-install": [
     "for size in 16 24 32 48 128 256 512; do install -Dm644 ${FLATPAK_DEST}/tanksoffreedom/assets/icons/icon${size}.png ${FLATPAK_DEST}/share/icons/hicolor/${size}x${size}/apps/${FLATPAK_ID}.png; done"
    ],
    "build-commands": [
     "install -Dm755 tanksoffreedom.sh ${FLATPAK_DEST}/bin/tanksoffreedom",
     "install -Dm644 in.p1x.TanksOfFreedom.appdata.xml -t ${FLATPAK_DEST}/share/appdata/",
     "install -Dm644 in.p1x.TanksOfFreedom.desktop -t ${FLATPAK_DEST}/share/applications/",
     "mkdir -p ${FLATPAK_DEST}/tanksoffreedom",
     "mv * ${FLATPAK_DEST}/tanksoffreedom/"
    ]
   }
  ]
 }
}