{
 "app_id": "info.rttr.Return-To-The-Roots",
 "source_url": "https://raw.githubusercontent.com/flathub/info.rttr.Return-To-The-Roots/master/info.rttr.Return-To-The-Roots.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=~/.s25rttr"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:10:10.092451+00:00",
 "manifest": {
  "app-id": "info.rttr.Return-To-The-Roots",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "s25client",
  "rename-desktop-file": "s25rttr.desktop",
  "rename-icon": "s25rttr",
  "rename-appdata-file": "s25rttr.metainfo.xml",
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--share=network",
   "--device=dri",
   "--filesystem=~/.s25rttr"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/include"
  ],
  "modules": [
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --prefix=${FLATPAK_DEST} --with-libraries=test,locale,iostreams,filesystem,program_options,regex,system,chrono,nowide",
     "./b2 -j${FLATPAK_BUILDER_N_JOBS} install variant=release cxxstd=17 --layout=system"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/boostorg/boost.git",
      "tag": "boost-1.87.0",
      "commit": "c89e6267665516192015a9e40955e154466f4f68",
      "x-data-checker": [
       {
        "type": "git",
        "tag-pattern": "^boost-([\\d.]+)$"
       }
      ]
     }
    ]
   },
   {
    "name": "miniupnpc",
    "buildsystem": "cmake-ninja",
    "subdir": "miniupnpc",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/miniupnp/miniupnp.git",
      "tag": "miniupnpc_2_2_8",
      "commit": "b55145ec095652289a59c33603f3abafee898273",
      "x-data-checker": [
       {
        "type": "git",
        "tag-pattern": "^miniupnpc_([\\d_]+)$"
       }
      ]
     }
    ]
   },
   {
    "name": "s25client",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_CXX_FLAGS=-Wno-error=deprecated-declarations -Wno-dangling-reference",
     "-DRTTR_BUILD_UPDATER=OFF",
     "-DRTTR_USE_SYSTEM_LIBS=OFF",
     "-DRTTR_GAMEDIR=~/.s25rttr/S2",
     "-DRTTR_INSTALL_PLACEHOLDER=OFF",
     "-DFETCHCONTENT_FULLY_DISCONNECTED=ON",
     "-DBUILD_TESTING=OFF",
     "-DRTTR_VERSION=0.9.5"
    ],
    "post-install": [
     "install -D -m 0644 ../tools/release/debian/s25rttr.desktop ${FLATPAK_DEST}/share/applications/s25rttr.desktop",
     "install -D -m 0644 ../tools/release/debian/s25rttr.png ${FLATPAK_DEST}/share/icons/hicolor/64x64/apps/s25rttr.png",
     "install -D -m 0644 ../icon.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/s25rttr.png",
     "install -D -m 0644 ../tools/release/debian/s25rttr.metainfo.xml ${FLATPAK_DEST}/share/metainfo/s25rttr.metainfo.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Return-To-The-Roots/s25client.git",
      "tag": "v0.9.5",
      "commit": "397f2b2315e997504d4958bfbdea0af815ce559a",
      "x-data-checker": [
       {
        "type": "git",
        "tag-pattern": "^v([\\d.]+)$"
       }
      ]
     },
     {
      "type": "patch",
      "path": "appdata.patch"
     },
     {
      "type": "file",
      "path": "icon.png"
     },
     {
      "type": "patch",
      "path": "placeholder.patch"
     },
     {
      "type": "patch",
      "path": "popup.patch"
     },
     {
      "type": "patch",
      "path": "gcc13.patch"
     },
     {
      "type": "patch",
      "path": "miniupnpc.patch"
     },
     {
      "type": "patch",
      "path": "boost.patch"
     }
    ]
   }
  ]
 }
}