{
 "app_id": "net.xm1math.Texmaker",
 "source_url": "https://raw.githubusercontent.com/flathub/net.xm1math.Texmaker/master/net.xm1math.Texmaker.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.1",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--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:57.050727+00:00",
 "manifest": {
  "app-id": "net.xm1math.Texmaker",
  "runtime": "org.kde.Platform",
  "runtime-version": 6.1,
  "sdk": "org.kde.Sdk",
  "base": "io.qt.qtwebengine.BaseApp",
  "base-version": 6.1,
  "command": "texmaker",
  "rename-desktop-file": "texmaker.desktop",
  "rename-appdata-file": "texmaker.metainfo.xml",
  "rename-icon": "texmaker",
  "finish-args": [
   "--socket=fallback-x11",
   "--share=ipc",
   "--socket=wayland",
   "--device=dri",
   "--filesystem=xdg-documents",
   "--env=TEXMFVAR=$XDG_CACHE_HOME"
  ],
  "cleanup": [
   "/include",
   "*.la",
   "*.a"
  ],
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "add-extensions": {
   "org.freedesktop.Sdk.Extension.texlive": {
    "version": "25.08",
    "directory": "texlive"
   }
  },
  "modules": [
   {
    "name": "texlive",
    "buildsystem": "simple",
    "build-commands": [
     "install -d /app/texlive"
    ]
   },
   {
    "name": "ghostscript",
    "config-opts": [
     "--disable-cups"
    ],
    "build-options": {
     "ldflags": "-L/app/lib",
     "arch": {
      "aarch64": {
       "cppflags": "-DPNG_ARM_NEON_OPT=0"
      }
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10060/ghostpdl-10.06.0.tar.gz",
      "sha256": "80dd50abf5970f49140ca7c0c19475cc2707437f89e8a825e670ba101003f1d8"
     }
    ]
   },
   {
    "name": "texmaker",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "env": {
      "QMAKEPATH": "/app/lib"
     }
    },
    "config-opts": [
     "DESKTOPDIR=/app/share/applications",
     "METAINFODIR=/app/share/metainfo",
     "INCLUDEPATH+=/app/include/QtWebEngineWidgets",
     "LIBS+=-L/app/lib",
     "CONFIG+=force_debug_info"
    ],
    "post-install": [
     "install -Dm644 datas/distrib/linux/texmaker.svg /app/share/icons/hicolor/scalable/apps/texmaker.svg",
     "mv /app/bin/texmaker /app/bin/texmaker-bin",
     "install -m755 texmaker-wrapper /app/bin/texmaker"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.xm1math.net/texmaker/texmaker-6.0.2.tar.bz2",
      "sha256": "25ecbb16d156ed1528b31511d37c9da7858a2def328b87f17fc877f57f5139cf",
      "x-checker-data": {
       "type": "html",
       "url": "https://www.xm1math.net/texmaker/download.html",
       "version-pattern": "DOWNLOAD version ([\\d\\.]+)",
       "url-template": "https://www.xm1math.net/texmaker/texmaker-$version.tar.bz2"
      }
     },
     {
      "type": "file",
      "path": "wrapper/texmaker-wrapper"
     }
    ]
   }
  ]
 }
}