{
 "app_id": "net.longturn.freeciv21",
 "source_url": "https://raw.githubusercontent.com/flathub/net.longturn.freeciv21/master/net.longturn.freeciv21.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--filesystem=xdg-documents",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:13:31.256729+00:00",
 "manifest": {
  "app-id": "net.longturn.freeciv21",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio",
   "--filesystem=xdg-documents",
   "--persist=.local/share/freeciv21",
   "--persist=.config/freeciv21"
  ],
  "command": "freeciv21-client",
  "modules": [
   "shared-modules/lua5.4/lua-5.4.json",
   {
    "name": "Libertinus",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/alerque/libertinus/releases/download/v7.040/Libertinus-7.040.zip",
      "sha256": "2cce08507441d8ae7b835cfe51fb643ad5d9f6b44db4360c4e244f0e474a72f6",
      "dest": "fonts/Libertinus"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p ${FLATPAK_DEST}/share/freeciv21/fonts/Libertinus/static/OTF",
     "cp -v fonts/Libertinus/static/OTF/*.otf ${FLATPAK_DEST}/share/freeciv21/fonts/Libertinus/static/OTF"
    ]
   },
   {
    "name": "freeciv21",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DFREECIV_DOWNLOAD_FONTS=OFF"
    ],
    "cleanup": [
     "/include",
     "/lib"
    ],
    "post-install": [
     "install -D freeciv21-client.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png",
     "install freeciv21-server.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.server.png",
     "install freeciv21-modpack.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.modpack.png",
     "install freeciv21-ruledit.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.ruledit.png",
     "desktop-file-edit --set-icon=${FLATPAK_ID} ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "desktop-file-edit --set-icon=${FLATPAK_ID}.server ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.server.desktop",
     "desktop-file-edit --set-icon=${FLATPAK_ID}.modpack ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.modpack.desktop",
     "desktop-file-edit --set-icon=${FLATPAK_ID} ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.ruledit.desktop"
    ],
    "sources": [
     {
      "type": "git",
      "commit": "767e69f9aa9fc023dd357337e610bf440f874d2e",
      "url": "https://github.com/longturn/freeciv21"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/longturn/freeciv21/v3.1.2/data/icons/128x128/freeciv21-client.png",
      "sha256": "33afb053fbbf78697519a9228da4230562394286c9dc29d335d4d6372276b400"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/longturn/freeciv21/v3.1.2/data/icons/128x128/freeciv21-server.png",
      "sha256": "05352cc0c00746ba79542103f0d71dc17368da24f2ebed3979ddadc199b930ba"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/longturn/freeciv21/v3.1.2/data/icons/128x128/freeciv21-modpack.png",
      "sha256": "82c32292738cb63a6e55bf880758ff5f9987e026709db18f63bd77b360552b19"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/longturn/freeciv21/v3.1.2/data/icons/128x128/freeciv21-ruledit.png",
      "sha256": "b69f76d8aa6897a47b40da3762161d1f153b04b099c0718be4b75e03177abbfa"
     }
    ]
   }
  ]
 }
}