{
 "app_id": "org.texstudio.TeXstudio",
 "source_url": "https://raw.githubusercontent.com/flathub/org.texstudio.TeXstudio/master/org.texstudio.TeXstudio.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=/tmp",
  "--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.Flatpak"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T16:16:47.247188+00:00",
 "manifest": {
  "app-id": "org.texstudio.TeXstudio",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk"
  ],
  "add-extensions": {
   "org.freedesktop.Sdk.Extension.texlive": {
    "directory": "texlive",
    "subdirectories": true,
    "autodelete": true,
    "version": "25.08",
    "no-autodownload": true
   }
  },
  "command": "texstudio.sh",
  "rename-icon": "texstudio",
  "rename-appdata-file": "texstudio.metainfo.xml",
  "rename-desktop-file": "texstudio.desktop",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--device=dri",
   "--filesystem=host",
   "--filesystem=/tmp",
   "--talk-name=org.freedesktop.Flatpak",
   "--talk-name=com.canonical.AppMenu.Registrar",
   "--env=PATH=/usr/bin:/app/bin:/app/texlive/bin:/app/texlive/bin/x86_64-linux:/app/texlive/bin/aarch64-linux:/app/jre/bin",
   "--env=LD_LIBRARY_PATH=/app/texlive/lib/"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/man"
  ],
  "modules": [
   {
    "name": "extension-points",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir /app/texlive"
    ]
   },
   {
    "name": "poppler",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DBUILD_GTK_TESTS=OFF",
     "-DBUILD_QT5_TESTS=OFF",
     "-DBUILD_QT6_TESTS=OFF",
     "-DBUILD_CPP_TESTS=OFF",
     "-DBUILD_MANUAL_TESTS=OFF",
     "-DENABLE_GLIB=OFF",
     "-DENABLE_QT5=OFF",
     "-DENABLE_LIBCURL=OFF",
     "-DENABLE_GPGME=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://poppler.freedesktop.org/poppler-26.08.0.tar.xz",
      "sha256": "dc906e68cea698109706ac6aa3d2c9d4512fcfcac42d90b8afcda486d1b9abd0",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 3686,
       "url-template": "https://poppler.freedesktop.org/poppler-$version.tar.xz"
      }
     }
    ],
    "modules": [
     {
      "name": "poppler-data",
      "buildsystem": "cmake-ninja",
      "builddir": true,
      "config-opts": [
       "-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://poppler.freedesktop.org/poppler-data-0.4.12.tar.gz",
        "sha256": "c835b640a40ce357e1b83666aabd95edffa24ddddd49b8daff63adb851cdab74",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 3687,
         "url-template": "https://poppler.freedesktop.org/poppler-data-$version.tar.gz"
        }
       }
      ],
      "post-install": [
       "install -p -D -m 0644 ../COPYING* -t \"${FLATPAK_DEST}/share/licenses/poppler-data/\";"
      ]
     },
     {
      "name": "boost",
      "buildsystem": "simple",
      "build-commands": [
       "./bootstrap.sh --prefix=/app --with-libraries=container",
       "./b2 -j $FLATPAK_BUILDER_N_JOBS install"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://archives.boost.io/release/1.92.0/source/boost_1_92_0.tar.gz",
        "sha256": "c4a3b310ddd2472416e091067166b0713be97c63f38c212c484ada022fd296ce",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 6845,
         "url-template": "https://archives.boost.io/release/$version/source/boost_${version0}_${version1}_${version2}.tar.gz"
        }
       }
      ]
     }
    ]
   },
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk/install.sh"
    ]
   },
   {
    "name": "languagetool",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir /app/languagetool",
     "cp -r * /app/languagetool"
    ],
    "sources": [
     {
      "url": "https://languagetool.org/download/LanguageTool-6.6.zip",
      "type": "archive",
      "sha256": "53600506b399bb5ffe1e4c8dec794fd378212f14aaf38ccef9b6f89314d11631",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 241970,
       "url-template": "https://languagetool.org/download/LanguageTool-$version.zip"
      }
     }
    ]
   },
   {
    "name": "pandoc",
    "buildsystem": "simple",
    "build-commands": [
     "install -D bin/pandoc /app/bin/pandoc"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/jgm/pandoc/releases/download/3.11/pandoc-3.11-linux-amd64.tar.gz",
      "sha256": "37edb3bbcf722f921a009941bf5874e2e0c09263226c9b4a2d980788cb062ab6",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 2589,
       "url-template": "https://github.com/jgm/pandoc/releases/download/$version/pandoc-$version-linux-amd64.tar.gz"
      }
     },
     {
      "type": "archive",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/jgm/pandoc/releases/download/3.11/pandoc-3.11-linux-arm64.tar.gz",
      "sha256": "56ed5566ec41d22ec9ee0704e6ac0b98ba102e92384efd5306173a22d314c79a",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 2589,
       "url-template": "https://github.com/jgm/pandoc/releases/download/$version/pandoc-$version-linux-arm64.tar.gz"
      }
     }
    ]
   },
   {
    "name": "texstudio",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-Wno-dev"
    ],
    "cleanup-platform": [
     "/bin",
     "/mkspecs"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/texstudio-org/texstudio.git",
      "tag": "4.9.8",
      "commit": "00f7c1c3db1d629a854ff5eb8ee25eb402c8178e",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$",
       "is-main-source": true
      }
     },
     {
      "type": "file",
      "path": "changelog2metainfo.sh"
     },
     {
      "type": "file",
      "path": "texstudio.sh"
     },
     {
      "type": "shell",
      "commands": [
       "sed -e \"s|setDesktopFileName(\\\"texstudio\\\")|setDesktopFileName(\\\"org.texstudio.TeXstudio\\\")|\" -i src/main.cpp",
       "desktop-file-edit --set-key=Exec --set-value=\"texstudio.sh %F\" utilities/texstudio.desktop",
       "chmod +x ./changelog2metainfo.sh && ./changelog2metainfo.sh",
       "sed -zi \"s|</description>[[:space:]]*<launchable|<p>Requires either TeX Live being installed on the system from your distribution's repositories or the TeX Live Flatpak which you can install by running 'flatpak install flathub org\\.freedesktop\\.Sdk\\.Extension\\.texlive//25\\.08'</p></description><launchable|\" utilities/texstudio.metainfo.xml"
      ]
     }
    ],
    "build-commands": [
     "install -Dm755 -t ${FLATPAK_DEST}/bin/ ./texstudio.sh"
    ]
   }
  ]
 }
}