{
 "app_id": "gg.tesseract.Tesseract",
 "source_url": "https://raw.githubusercontent.com/flathub/gg.tesseract.Tesseract/master/gg.tesseract.Tesseract.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:10:04.899218+00:00",
 "manifest": {
  "id": "gg.tesseract.Tesseract",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "tesseract",
  "finish-args": [
   "--socket=pulseaudio",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--device=dri",
   "--persist=.tesseract"
  ],
  "modules": [
   "shared-modules/SDL2/SDL2_image.json",
   "shared-modules/SDL2/SDL2_mixer.json",
   {
    "name": "tesseract",
    "no-autogen": true,
    "subdir": "src",
    "post-install": [
     "mkdir -p ${FLATPAK_DEST}/share/tesseract",
     "cp -a ../media/ ../config/ ${FLATPAK_DEST}/share/tesseract",
     "install -Dm755 ../bin_unix/native_client -t ${FLATPAK_DEST}/bin",
     "install -Dm755 ../bin_unix/native_server -t ${FLATPAK_DEST}/bin",
     "install -Dm755 ../tesseract.sh ${FLATPAK_DEST}/bin/tesseract",
     "install -Dm755 ../tesseract-server.sh ${FLATPAK_DEST}/bin/tesseract-server",
     "install -Dm644 ../media/interface/cube.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png",
     "install -Dm644 ../gg.tesseract.Tesseract.desktop -t ${FLATPAK_DEST}/share/applications",
     "install -Dm644 ../gg.tesseract.Tesseract.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo"
    ],
    "sources": [
     {
      "type": "svn",
      "url": "svn://svn.tuxfamily.org/svnroot/tesseract/main",
      "revision": "2553"
     },
     {
      "type": "file",
      "path": "tesseract.sh"
     },
     {
      "type": "file",
      "path": "tesseract-server.sh"
     },
     {
      "type": "file",
      "path": "gg.tesseract.Tesseract.desktop"
     },
     {
      "type": "file",
      "path": "gg.tesseract.Tesseract.metainfo.xml"
     },
     {
      "type": "patch",
      "path": "patches/gcc16.patch"
     },
     {
      "type": "patch",
      "path": "patches/makefile-modernisation.patch"
     }
    ]
   }
  ]
 }
}