{
 "app_id": "info.colobot.Colobot",
 "source_url": "https://raw.githubusercontent.com/flathub/info.colobot.Colobot/master/info.colobot.Colobot.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri"
 ],
 "module_count": 7,
 "fetched_at": "2026-09-17T16:10:10.092448+00:00",
 "manifest": {
  "app-id": "info.colobot.Colobot",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "colobot",
  "rename-icon": "colobot",
  "rename-desktop-file": "colobot.desktop",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--device=dri",
   "--socket=pulseaudio"
  ],
  "cleanup": [
   "/bin/*.py",
   "/include",
   "/lib/pkgconfig",
   "/lib/python*",
   "/lib/libpython*",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/glew/glew.json",
   "shared-modules/glu/glu-9.json",
   "shared-modules/physfs/physfs.json",
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --prefix=/app --with-libraries=filesystem,regex,system",
     "./b2 headers",
     "./b2 install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.xz",
      "sha256": "2e64e5d79a738d0fa6fb546c6e5c2bd28f88d268a2a080546f74e5ff98f29d0e",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 6845,
       "url-template": "https://github.com/boostorg/boost/releases/download/boost-$version/boost-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "colobot",
    "builddir": true,
    "buildsystem": "cmake-ninja",
    "build-options": {
     "cxxflags": "-Wno-format-overflow"
    },
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCOLOBOT_INSTALL_BIN_DIR=/app/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/colobot/colobot/archive/colobot-gold-0.2.2-alpha.tar.gz",
      "sha256": "047eb2bc96725598d918c5b500928e3a08fa3e6e7e730a82169da4524b03ddad",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/colobot/colobot/releases/latest",
       "version-query": ".tag_name",
       "timestamp-query": ".published_at",
       "url-query": "\"https://github.com/colobot/colobot/archive/\" + $version + \".tar.gz\""
      }
     },
     {
      "type": "file",
      "path": "info.colobot.Colobot.appdata.xml",
      "dest": "desktop/"
     },
     {
      "type": "patch",
      "path": "colobot-0.1.12-list.patch"
     },
     {
      "type": "patch",
      "path": "colobot-0.2.1-missing-include.patch"
     }
    ]
   },
   "shared-modules/python2.7/python-2.7.json",
   {
    "name": "colobot-data",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/colobot/colobot-data/archive/colobot-gold-0.2.2-alpha.tar.gz",
      "sha256": "5c959a65ffc6047b656339bad425e2c050d3eb826e857dd80e2a03da0418c000",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/colobot/colobot/releases/latest",
       "version-query": ".tag_name",
       "timestamp-query": ".published_at",
       "url-query": "\"https://github.com/colobot/colobot-data/archive/\" + $version + \".tar.gz\""
      }
     },
     {
      "type": "archive",
      "url": "https://colobot.info/files/music/colobot-music_ogg_0.2.2-alpha.tar.gz",
      "sha256": "55e89d244f1f63e2467ef71253ca881ee31279f02aac9ac4706ef26c466306e9",
      "strip-components": 0,
      "dest": "music/",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/colobot/colobot/releases/latest",
       "version-query": ".tag_name | match(\"colobot-gold-(.*)\") | .captures[0].string",
       "timestamp-query": ".published_at",
       "url-query": "\"https://colobot.info/files/music/colobot-music_ogg_\" + $version + \".tar.gz\""
      }
     }
    ]
   }
  ]
 }
}