{
 "app_id": "io.sourceforge.klatexformula.klatexformula",
 "source_url": "https://raw.githubusercontent.com/flathub/io.sourceforge.klatexformula.klatexformula/master/io.sourceforge.klatexformula.klatexformula.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "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": 3,
 "fetched_at": "2026-09-17T16:12:56.385735+00:00",
 "manifest": {
  "app-id": "io.sourceforge.klatexformula.klatexformula",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "base": "com.riverbankcomputing.PyQt.BaseApp",
  "base-version": "5.15-25.08",
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "build-options": {
   "env": [
    "BASEAPP_REMOVE_WEBENGINE=1"
   ]
  },
  "rename-desktop-file": "klatexformula.desktop",
  "command": "klatexformula",
  "finish-args": [
   "--device=dri",
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--env=PATH=/app/bin:/app/texlive/bin/x86_64-linux:/app/texlive/bin/aarch64-linux:/usr/bin:/bin"
  ],
  "cleanup": [
   "/share/doc",
   "/share/man"
  ],
  "add-extensions": {
   "org.freedesktop.Sdk.Extension.texlive": {
    "directory": "texlive",
    "subdirectories": true,
    "autodelete": true,
    "version": "25.08",
    "no-autodownload": true
   }
  },
  "modules": [
   {
    "name": "texlive-extension",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir /app/texlive"
    ]
   },
   {
    "name": "ghostscript",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10070/ghostscript-10.07.0.tar.gz",
      "sha256": "ed6ea62022e3f4d5a6569b6efc9361b63a6d118bfcad8f0beb897c37885b5cad"
     }
    ]
   },
   {
    "name": "klatexformula",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DKLF_INSTALL_DESKTOP_ICON=io.sourceforge.klatexformula.klatexformula"
    ],
    "post-install": [
     "install -Dm0644 src/klatexformula.svg $FLATPAK_DEST/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://downloads.sourceforge.net/project/klatexformula/klatexformula/klatexformula-4.1.0/klatexformula-4.1.0.tar.gz",
      "sha256": "7af0999eeee38176ea34f9f96b358e43e343c73edf6f56143f18794303ca8702"
     },
     {
      "type": "patch",
      "paths": [
       "patches/Add-AppStream-upstream-metadata.patch",
       "patches/applied-suggested-patch-fixes-53.patch",
       "patches/Compatibility-with-CMake-4.patch"
      ]
     }
    ]
   }
  ]
 }
}