{
 "app_id": "com.pot_app.pot",
 "source_url": "https://raw.githubusercontent.com/flathub/com.pot_app.pot/master/com.pot_app.pot.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "48",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--device=dri",
  "--filesystem=xdg-pictures",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.ayatana.indicator.application"
 ],
 "module_count": 10,
 "fetched_at": "2026-09-17T16:08:33.468006+00:00",
 "manifest": {
  "id": "com.pot_app.pot",
  "runtime": "org.gnome.Platform",
  "runtime-version": "48",
  "sdk": "org.gnome.Sdk",
  "command": "pot",
  "rename-icon": "pot",
  "rename-desktop-file": "pot.desktop",
  "finish-args": [
   "--socket=x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--share=ipc",
   "--share=network",
   "--device=dri",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=org.ayatana.indicator.application",
   "--filesystem=xdg-pictures"
  ],
  "modules": [
   "shared-modules/libappindicator/libappindicator-gtk3-12.10.json",
   {
    "name": "webkit2gtk-4.0",
    "sources": [
     {
      "type": "archive",
      "url": "https://webkitgtk.org/releases/webkitgtk-2.48.6.tar.xz",
      "sha256": "d9ac3034b7a39c2aaa567e6112b3124b158e591a74439e46974a031dd0e44e24",
      "x-checker-data": {
       "type": "html",
       "url": "https://webkitgtk.org/releases/",
       "version-pattern": "LATEST-STABLE-(\\d[\\.\\d]+\\d)",
       "url-template": "https://webkitgtk.org/releases/webkitgtk-$version.tar.xz"
      }
     }
    ],
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-D CMAKE_BUILD_TYPE=Release",
     "-D PORT=GTK",
     "-D USE_FLITE=OFF",
     "-D USE_GTK4=OFF",
     "-D USE_LIBBACKTRACE=OFF",
     "-D USE_SOUP2=ON",
     "-D ENABLE_DOCUMENTATION=OFF",
     "-D ENABLE_MINIBROWSER=OFF",
     "-D ENABLE_WEBDRIVER=OFF",
     "-D ENABLE_GAMEPAD=OFF",
     "-D ENABLE_SPEECH_SYNTHESIS=OFF",
     "-D ENABLE_BUBBLEWRAP_SANDBOX=OFF"
    ],
    "modules": [
     "shared-modules/libsoup/libsoup-2.4.json",
     {
      "name": "unifdef",
      "no-autogen": true,
      "make-install-args": [
       "prefix=${FLATPAK_DEST}"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://dotat.at/prog/unifdef/unifdef-2.12.tar.xz",
        "sha256": "43ce0f02ecdcdc723b2475575563ddb192e988c886d368260bc0a63aee3ac400"
       }
      ],
      "cleanup": [
       "*"
      ]
     }
    ]
   },
   {
    "name": "xdotool",
    "no-autogen": true,
    "make-install-args": [
     "PREFIX=${FLATPAK_DEST}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/jordansissel/xdotool.git",
      "tag": "v3.20211022.1",
      "commit": "eb489de1b4fb3fd0cd935d68ae16ecd4c653ac7d",
      "x-checker-data": {
       "type": "antiya",
       "project-id": 8648,
       "tag-template": "v$version"
      }
     }
    ]
   },
   {
    "name": "xrandr",
    "sources": [
     {
      "type": "archive",
      "url": "https://www.x.org/releases/individual/app/xrandr-1.5.2.tar.xz",
      "sha256": "c8bee4790d9058bacc4b6246456c58021db58a87ddda1a9d0139bf5f18f1f240",
      "x-checker-data": {
       "type": "antiya",
       "project-id": 14957,
       "url-template": "https://www.x.org/releases/individual/app/xrandr-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "tesseract",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/tesseract-ocr/tesseract.git",
      "tag": "5.5.2",
      "commit": "6e1d56a847e697de07b38619356550e5cf4e8633",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/tesseract-ocr/tesseract/releases/latest",
       "tag-query": ".tag_name",
       "version-query": "$tag"
      }
     }
    ],
    "modules": [
     {
      "name": "leptonica",
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/DanBloomberg/leptonica.git",
        "tag": "1.87.0",
        "commit": "13275a278eb55b5746e33f95fbf5a2c8f604b3ab",
        "x-checker-data": {
         "type": "json",
         "url": "https://api.github.com/repos/DanBloomberg/leptonica/releases/latest",
         "tag-query": ".tag_name",
         "version-query": "$tag"
        }
       }
      ]
     }
    ]
   },
   {
    "name": "tessdata",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 {deu,nld,tur,eng,jpn,rus,fra,ara,chi_sim,spa}.traineddata -t /app/share/tessdata/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/tesseract-ocr/tessdata_fast.git",
      "tag": "4.1.0",
      "commit": "65727574dfcd264acbb0c3e07860e4e9e9b22185",
      "x-checker-data": {
       "type": "antiya",
       "project-id": 326567,
       "tag-template": "$version"
      }
     }
    ]
   },
   {
    "name": "pot",
    "buildsystem": "simple",
    "build-commands": [
     "ar x pot.deb",
     "tar xf data.*",
     "install -Dm755 usr/bin/pot -t /app/bin/",
     "cp -a usr/share /app/",
     "install -Dm644 com.pot_app.pot.metainfo.xml -t /app/share/metainfo/"
    ],
    "sources": [
     {
      "type": "file",
      "dest-filename": "pot.deb",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://github.com/pot-app/pot-desktop/releases/download/3.0.7/pot_3.0.7_amd64.deb",
      "sha256": "6e9ed622a079efcd113c0e28f3f55e5c43b18587acc3fb8f1a6cd076a911b2b7",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/pot-app/pot-desktop/releases/latest",
       "version-query": ".tag_name",
       "url-query": "\"https://github.com/pot-app/pot-desktop/releases/download/\" + $version + \"/pot_\" + $version + \"_amd64.deb\""
      }
     },
     {
      "type": "file",
      "dest-filename": "pot.deb",
      "only-arches": [
       "aarch64"
      ],
      "url": "https://github.com/pot-app/pot-desktop/releases/download/3.0.7/pot_3.0.7_arm64.deb",
      "sha256": "8c876f850fa97330501f73ca728e532aaa97d1f14a5785efdc7782a325813ba0",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/pot-app/pot-desktop/releases/latest",
       "version-query": ".tag_name",
       "url-query": "\"https://github.com/pot-app/pot-desktop/releases/download/\" + $version + \"/pot_\" + $version + \"_arm64.deb\""
      }
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/pot-app/pot-desktop/3.0.7/com.pot_app.pot.metainfo.xml",
      "sha256": "b4c07a97a2d242282e6c449540a2ce3a32f9c99422d6dcd65ec60d8a65f6125f",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/pot-app/pot-desktop/releases/latest",
       "version-query": ".tag_name",
       "url-query": "\"https://raw.githubusercontent.com/pot-app/pot-desktop/\" + $version + \"/com.pot_app.pot.metainfo.xml\""
      }
     }
    ]
   }
  ]
 }
}