{
 "app_id": "de.akaflieg_freiburg.enroute",
 "source_url": "https://raw.githubusercontent.com/flathub/de.akaflieg_freiburg.enroute/master/de.akaflieg_freiburg.enroute.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=host",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-20T11:46:02.845723+00:00",
 "manifest": {
  "app-id": "de.akaflieg_freiburg.enroute",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk",
  "base": "io.qt.qtwebengine.BaseApp",
  "base-version": "6.10",
  "command": "enroute",
  "finish-args": [
   "--device=all",
   "--env=QML_IMPORT_PATH=/app/qml",
   "--env=QT_PLUGIN_PATH=/app/plugins",
   "--filesystem=host",
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--socket=wayland",
   "--system-talk-name=org.bluez",
   "--system-talk-name=org.bluez.obex",
   "--system-talk-name=org.freedesktop.GeoClue2",
   "--system-talk-name=org.freedesktop.NetworkManager",
   "--talk-name=org.freedesktop.Notifications"
  ],
  "modules": [
   {
    "name": "flite",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/festvox/flite.git",
      "tag": "v2.2"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "./configure --prefix=/app --with-langvox=ben --with-pic",
     "make",
     "echo >bin/flite_time",
     "make install"
    ]
   },
   {
    "name": "maplibre-native-qt",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Akaflieg-Freiburg/enrouteDependencies/releases/download/developerBuilds/maplibre-native-qt.tar.xz",
      "sha256": "ea647e5260d538fc25b24853f375fff49ef84f9fddd715cdff9848dee99b3813"
     }
    ],
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_CXX_FLAGS=-Wno-error",
     "-DMLN_QT_WITH_INTERNAL_ICU=ON",
     "-DBUILD_TESTING=OFF"
    ]
   },
   {
    "name": "libzip",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/nih-at/libzip",
      "commit": "00259560701600e0830002e9273c6c9097be3719"
     }
    ],
    "buildsystem": "cmake-ninja"
   },
   {
    "name": "qthttpserver",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/qt/qthttpserver.git",
      "tag": "v6.10.3"
     }
    ],
    "buildsystem": "cmake-ninja"
   },
   {
    "name": "symlink",
    "buildsystem": "simple",
    "build-commands": [
     "ln -sr ${FLATPAK_DEST}/lib/${FLATPAK_ARCH}-linux-gnu/libQt6HttpServer*.so* -t ${FLATPAK_DEST}/lib/"
    ]
   },
   {
    "name": "enroute",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Akaflieg-Freiburg/enroute.git",
      "commit": "f03135d19"
     }
    ],
    "post-install": [
     "mkdir -p /app/usr/share/icons",
     "cp /app/share/icons/hicolor/scalable/apps/de.akaflieg_freiburg.enroute.svg /app/usr/share/icons/de.akaflieg_freiburg.enroute.svg",
     "python3 /run/build/enroute/packaging/flatpak/inject_releases.py /run/build/enroute/CHANGELOG.md /app/share/metainfo/de.akaflieg_freiburg.enroute.appdata.xml"
    ]
   }
  ]
 }
}