{
 "app_id": "org.freeorion.FreeOrion",
 "source_url": "https://raw.githubusercontent.com/flathub/org.freeorion.FreeOrion/master/org.freeorion.FreeOrion.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:14:41.585520+00:00",
 "manifest": {
  "app-id": "org.freeorion.FreeOrion",
  "command": "freeorion",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--socket=pulseaudio"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake"
  ],
  "modules": [
   "shared-modules/glew/glew.json",
   "shared-modules/glu/glu-9.json",
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --prefix=${FLATPAK_DEST} --with-python=/usr/bin/python3 --with-libraries=filesystem,iostreams,locale,log,serialization,thread,python,regex",
     "./b2 --reconfigure -j ${FLATPAK_BUILDER_N_JOBS} toolset=gcc threading=multi variant=release debug-symbols=off link=shared runtime-link=shared cflags=\"-I/usr/include/python3.7m -fPIC -O3\" cxxflags=\"-I/usr/include/python3.7m -fPIC -O3\" install"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.91.0/source/boost_1_91_0.tar.bz2",
      "sha256": "de5e6b0e4913395c6bdfa90537febd9028ea4c0735d2cdb0cd9b45d5f51264f5",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 6845,
       "stable-only": true,
       "url-template": "https://archives.boost.io/release/$version/source/boost_${major}_${minor}_$patch.tar.bz2"
      }
     }
    ]
   },
   {
    "name": "freeorion",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/freeorion/freeorion/archive/v0.5.1.2.tar.gz",
      "sha256": "c2f90534bdf6b8281a78d01be9d7ccf5ae4f401f9f4fe4b3693de3443977c0d7",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 12152,
       "stable-only": true,
       "url-template": "https://github.com/freeorion/freeorion/archive/v$version.tar.gz"
      }
     },
     {
      "type": "patch",
      "path": "fix-screenshot.patch"
     }
    ]
   }
  ]
 }
}