{
 "app_id": "app.cantara.Cantara",
 "source_url": "https://raw.githubusercontent.com/flathub/app.cantara.Cantara/master/app.cantara.Cantara.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:06:21.975257+00:00",
 "manifest": {
  "app-id": "app.cantara.Cantara",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.freepascal"
  ],
  "command": "cantara",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri"
  ],
  "modules": [
   {
    "name": "qt6pas",
    "buildsystem": "qmake",
    "config-opts": [
     "-after",
     "target.path=/app/lib"
    ],
    "sources": [
     {
      "type": "shell",
      "commands": [
       "cp -r /usr/lib/sdk/freepascal/share/lazarus/lcl/interfaces/qt6/cbindings/. ."
      ]
     }
    ]
   },
   {
    "name": "cantara",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/reckel-jm/cantara.git",
      "commit": "de2534e53e6a256694c5a39871878ec680ab8f3e"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     ". /usr/lib/sdk/freepascal/enable.sh\ncd src\nlazbuild --ws=\"qt6\" bgrabitmap/bgrabitmap/bgrabitmappack.lpk\nlazbuild -B --ws=\"qt6\" metadarkstyle/metadarkstyle.lpk\nlazbuild --lazarusdir=\"$LAZARUS_DIR\" -B --bm=\"ReleaseConfined\" --ws=\"qt6\" Cantara.lpi\ncd ..\nfor po_file in src/locals/cantara.*.po; do\n    lang_code=$(basename \"$po_file\" .po | cut -d'.' -f2)\n    mo_file=\"src/languages/$lang_code/cantara.mo\"\n    echo \"Compiling $po_file to $mo_file\"\n    echo \"msgfmt -o $mo_file $po_file\"\n    msgfmt -o \"$mo_file\" \"$po_file\"\ndone\n",
     "install -D src/cantara -t $FLATPAK_DEST/bin",
     "cp -r src/languages $FLATPAK_DEST/bin/",
     "install -D icons/64.png $FLATPAK_DEST/share/icons/hicolor/64x64/apps/app.cantara.Cantara.png",
     "install -D icons/128.png $FLATPAK_DEST/share/icons/hicolor/128x128/apps/app.cantara.Cantara.png",
     "install -D app.cantara.Cantara.desktop -t $FLATPAK_DEST/share/applications",
     "install -D app.cantara.Cantara.metainfo.xml -t $FLATPAK_DEST/share/metainfo"
    ]
   }
  ]
 }
}