{
 "app_id": "org.kde.skanpage",
 "source_url": "https://raw.githubusercontent.com/flathub/org.kde.skanpage/master/org.kde.skanpage.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--system-talk-name=org.freedesktop.Avahi"
 ],
 "module_count": 11,
 "fetched_at": "2026-09-20T15:34:29.080634+00:00",
 "manifest": {
  "id": "org.kde.skanpage",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "base": "io.qt.qtwebengine.BaseApp",
  "base-version": "6.11",
  "rename-icon": "skanpage",
  "command": "skanpage",
  "finish-args": [
   "--device=all",
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--system-talk-name=org.freedesktop.Avahi"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/libpkgconfig",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/mkspecs",
   "/share/doc",
   "/share/man",
   "/share/qlogging-categories6"
  ],
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "modules": [
   {
    "name": "avahi",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-gtk",
     "--disable-qt3",
     "--disable-qt4",
     "--disable-qt5",
     "--disable-mono",
     "--disable-monodoc",
     "--with-distro=none",
     "--disable-pygobject",
     "--disable-python-dbus",
     "--disable-python",
     "--disable-manpages",
     "--disable-libdaemon",
     "--disable-daemon",
     "--enable-compat-libdns_sd",
     "--disable-libevent"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/lathiat/avahi",
      "tag": "v0.8",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      },
      "commit": "f060abee2807c943821d88839c013ce15db17b58"
     }
    ]
   },
   {
    "name": "sane",
    "buildsystem": "autotools",
    "config-opts": [
     "--with-usb",
     "--with-v4l",
     "--with-gphoto2",
     "--enable-pthread",
     "--enable-pnm-backend",
     "--enable-pthread",
     "--enable-avahi"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.com/sane-project/backends",
      "tag": "1.4.0",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      },
      "commit": "c7e4b5e35e3d614d2b1181d760a717bfc395a203"
     }
    ]
   },
   {
    "name": "sane-airscan",
    "buildsystem": "meson",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/alexpevzner/sane-airscan/archive/refs/tags/0.99.38.tar.gz",
      "sha256": "1e5b3b8373141caa37bf42fe74ae1950de3ff15c84966d8a415485d334ba5507",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 121086,
       "url-template": "https://github.com/alexpevzner/sane-airscan/archive/refs/tags/$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "net-snmp",
    "no-parallel-make": true,
    "config-opts": [
     "--disable-static",
     "--disable-embedded-perl",
     "--without-perl-modules",
     "--without-rpm",
     "--enable-ucd-snmp-compatibility",
     "--enable-ipv6",
     "--enable-as-needed",
     "--with-openssl",
     "--with-pic",
     "--with-default-snmp-version=3",
     "--with-sys-contact=root@localhost"
    ],
    "build-options": {
     "ldflags": "-lncurses -ltinfo"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/net-snmp/files/net-snmp/5.9.5.2/net-snmp-5.9.5.2.tar.gz",
      "x-checker-data": {
       "type": "html",
       "url": "https://sourceforge.net/projects/net-snmp/rss",
       "pattern": "<link>(https://sourceforge.net/.+/net-snmp-([\\d\\.]+\\d).tar.gz)/download</link>"
      },
      "sha256": "16707719f833184a4b72835dac359ae188123b06b5e42817c00790d7dc1384bf"
     }
    ]
   },
   {
    "name": "hplip",
    "config-opts": [
     "--disable-static",
     "--disable-doc-build",
     "--disable-hpijs-install",
     "--disable-hpcups-install",
     "--disable-new-hpcups",
     "--disable-hpps-install",
     "--disable-gui-build",
     "--disable-fax-build",
     "--disable-cups11-build",
     "--disable-foomatic-ppd-install",
     "--disable-foomatic-drv-install",
     "--disable-cups-drv-install",
     "--disable-cups-ppd-install",
     "--disable-foomatic-rip-hplip-install",
     "--disable-qt3",
     "--disable-qt4",
     "--disable-qt5",
     "--enable-dbus-build",
     "--enable-network-build",
     "--enable-pp-build",
     "--enable-scan-build",
     "--with-pic",
     "--with-cupsfilterdir=/app/lib/cups/filter",
     "--with-cupsbackenddir=/app/lib/cups/backend"
    ],
    "build-options": {
     "cflags": "-std=gnu18 -Wno-error=implicit-function-declaration",
     "cppflags": "-I/app/include/libusb-1.0"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/sourceforge/hplip/hplip-3.26.4.tar.gz",
      "sha256": "b9c61252754f35b4a237396ca8961e7b3e0c56db76d66a6712b7bf3e30e69463",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1327,
       "stable-only": true,
       "url-template": "https://downloads.sourceforge.net/sourceforge/hplip/hplip-$version.tar.gz"
      }
     },
     {
      "type": "patch",
      "paths": [
       "patches/0001-hplip-scan-hpaio-include.patch",
       "patches/0002-hplip-hpaio-gcc14.patch",
       "patches/0003-hplip-scan-orblite-c99.patch",
       "patches/0004-hplip-covscan.patch",
       "patches/0005-hplip-orblite-use-const.patch",
       "patches/0017-Workaround-patch-for-missing-Python3-transition-of-t.patch",
       "patches/0099-flatpak.patch"
      ]
     },
     {
      "type": "shell",
      "commands": [
       "sed -i -re '/^[[:blank:]]*(@HPLIP_BUILD_TRUE@)?halpredir[[:blank:]]*=/s!/usr/share/!$(datadir)/!' Makefile*;",
       "sed -i -re '/^[[:blank:]]*(@HPLIP_BUILD_TRUE@)?rulessystemdir[[:blank:]]*=/s!/usr/lib/!$(libdir)/!' Makefile*;"
      ]
     },
     {
      "type": "shell",
      "commands": [
       "find * -xtype f | xargs -I{} grep -El '(^|[^A-Za-z)])/etc' '{}' | xargs -I{} sed -i -re '/(^|[^A-Za-z)])\\/etc/s!(/etc)!/app\\1!g' '{}';"
      ]
     },
     {
      "type": "shell",
      "commands": [
       "[ $(grep -c 'SAVE_CPPFLAGS=\"$CPPFLAGS\"' configure.in) -eq 1 ];",
       "sed -i -e 's/SAVE_CPPFLAGS=\"$CPPFLAGS\"/save_CFLAGS=\"$CFLAGS\"/' configure.in;"
      ]
     }
    ],
    "post-install": [
     "[ -f \"${FLATPAK_DEST}/etc/hp/hplip.conf\" ] || install -p -D \"hplip.conf\" -t \"${FLATPAK_DEST}/etc/hp/\";",
     "echo 'hpaio' > hpaio && install -p -D hpaio -t \"${FLATPAK_DEST}/etc/sane.d/dll.d/\";"
    ],
    "cleanup": [
     "/lib/cups",
     "/share/ppd"
    ]
   },
   {
    "name": "ksanecore",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DQT_MAJOR_VERSION=6"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.kde.org/stable/release-service/26.08.1/src/ksanecore-26.08.1.tar.xz",
      "sha256": "0555c4109b6132a774ce4081c12d9deeed8fdb152fa65714f7f73cb20965494d",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 8763,
       "stable-only": true,
       "url-template": "https://download.kde.org/stable/release-service/$version/src/ksanecore-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "leptonica",
    "rm-configure": true,
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/DanBloomberg/leptonica/releases/download/1.87.0/leptonica-1.87.0.tar.gz",
      "sha256": "c73363397f96eb1295602bf44d708a994ad42046c791bf03ea0505d829bdb6a7",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1549,
       "stable-only": true,
       "url-template": "https://github.com/DanBloomberg/leptonica/releases/download/$version/leptonica-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "tesseract",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/tesseract-ocr/tesseract/archive/refs/tags/5.5.3.tar.gz",
      "sha256": "9218e62793116d42a9f6d14cd9348518b27f382096eea3d0f2d1a24616bb5884",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 4954,
       "stable-only": true,
       "url-template": "https://github.com/tesseract-ocr/tesseract/archive/refs/tags/$version.tar.gz"
      }
     },
     {
      "type": "file",
      "url": "https://github.com/tesseract-ocr/tessdata_best/raw/4.1.0/eng.traineddata",
      "sha256": "8280aed0782fe27257a68ea10fe7ef324ca0f8d85bd2fd145d1c2b560bcb66ba",
      "dest": "traineddata"
     },
     {
      "type": "file",
      "url": "https://github.com/tesseract-ocr/tessdata_best/raw/4.1.0/jpn.traineddata",
      "sha256": "36bdf9ac823f5911e624c30d0553e890b8abc7c31a65b3ef14da943658c40b79",
      "dest": "traineddata"
     },
     {
      "type": "file",
      "url": "https://github.com/tesseract-ocr/tessdata_best/raw/4.1.0/rus.traineddata",
      "sha256": "b617eb6830ffabaaa795dd87ea7fd251adfe9cf0efe05eb9a2e8128b7728d6b6",
      "dest": "traineddata"
     },
     {
      "type": "file",
      "url": "https://github.com/tesseract-ocr/tessdata_best/raw/4.1.0/fra.traineddata",
      "sha256": "907743d98915c91a3906dfbf6e48b97598346698fe53aaa797e1a064ffcac913",
      "dest": "traineddata"
     },
     {
      "type": "file",
      "url": "https://github.com/tesseract-ocr/tessdata_best/raw/4.1.0/ara.traineddata",
      "sha256": "ab9d157d8e38ca00e7e39c7d5363a5239e053f5b0dbdb3167dde9d8124335896",
      "dest": "traineddata"
     },
     {
      "type": "file",
      "url": "https://github.com/tesseract-ocr/tessdata_best/raw/4.1.0/chi_sim.traineddata",
      "sha256": "4fef2d1306c8e87616d4d3e4c6c67faf5d44be3342290cf8f2f0f6e3aa7e735b",
      "dest": "traineddata"
     },
     {
      "type": "file",
      "url": "https://github.com/tesseract-ocr/tessdata_best/raw/4.1.0/spa.traineddata",
      "sha256": "e2c1ffdad8b30f26c45d4017a9183d3a7f9aa69e59918be4f88b126fac99ab2c",
      "dest": "traineddata"
     },
     {
      "type": "file",
      "url": "https://github.com/tesseract-ocr/tessdata_best/raw/4.1.0/tur.traineddata",
      "sha256": "e0c3338dc17503dc7d335a507c9ae01b2b46cfd07561171e1e1ac55d85e8e438",
      "dest": "traineddata"
     },
     {
      "type": "file",
      "url": "https://github.com/tesseract-ocr/tessdata_best/raw/4.1.0/nld.traineddata",
      "sha256": "92e7a1ad4bf8082e268de57c7823316ec024935702c6ed2a1e473b3a071aa733",
      "dest": "traineddata"
     },
     {
      "type": "file",
      "url": "https://github.com/tesseract-ocr/tessdata_best/raw/4.1.0/deu.traineddata",
      "sha256": "8407331d6aa0229dc927685c01a7938fc5a641d1a9524f74838cdac599f0d06e",
      "dest": "traineddata"
     }
    ],
    "post-install": [
     "install -p -D -m 0644 traineddata/deu.traineddata -t ${FLATPAK_DEST}/share/tessdata/",
     "install -p -D -m 0644 traineddata/nld.traineddata -t ${FLATPAK_DEST}/share/tessdata/",
     "install -p -D -m 0644 traineddata/tur.traineddata -t ${FLATPAK_DEST}/share/tessdata/",
     "install -p -D -m 0644 traineddata/eng.traineddata -t ${FLATPAK_DEST}/share/tessdata/",
     "install -p -D -m 0644 traineddata/jpn.traineddata -t ${FLATPAK_DEST}/share/tessdata/",
     "install -p -D -m 0644 traineddata/rus.traineddata -t ${FLATPAK_DEST}/share/tessdata/",
     "install -p -D -m 0644 traineddata/fra.traineddata -t ${FLATPAK_DEST}/share/tessdata/",
     "install -p -D -m 0644 traineddata/ara.traineddata -t ${FLATPAK_DEST}/share/tessdata/",
     "install -p -D -m 0644 traineddata/chi_sim.traineddata -t ${FLATPAK_DEST}/share/tessdata/",
     "install -p -D -m 0644 traineddata/spa.traineddata -t ${FLATPAK_DEST}/share/tessdata/"
    ]
   },
   {
    "name": "opencv",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DOPENCV_GENERATE_PKGCONFIG=ON",
     "-DBUILD_LIST=tracking,dnn"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/opencv/opencv/archive/5.0.0.tar.gz",
      "sha256": "b0528f5a1d379d59d4701cb28c36e22214cc51cf64594e5b56f2d3e6c0233095",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 6615,
       "stable-only": true,
       "url-template": "https://github.com/opencv/opencv/archive/$version.tar.gz"
      }
     },
     {
      "type": "archive",
      "url": "https://github.com/opencv/opencv_contrib/archive/5.0.0.tar.gz",
      "sha256": "c58f6344170c39abf187c56f3843b59cab1fd3e89cf19ba2ce25dc061659b27f",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 6615,
       "stable-only": true,
       "url-template": "https://github.com/opencv/opencv_contrib/archive/$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "kquickimageeditor",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DQT_MAJOR_VERSION=6"
    ],
    "sources": [
     {
      "type": "archive",
      "sha256": "b65f32c44bd126cea5e1b5a6eb7cb0eb517277cb8de06675fa6be624b7da381a",
      "url": "https://download.kde.org/stable/kquickimageeditor/kquickimageeditor-0.7.0.1.tar.xz",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 229033,
       "stable-only": true,
       "url-template": "https://download.kde.org/stable/kquickimageeditor/kquickimageeditor-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "skanpage",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://download.kde.org/stable/release-service/26.08.1/src/skanpage-26.08.1.tar.xz",
      "sha256": "849338282311c9a2c936f3aae8f38be8b7ee7a890592912452eb4424e5a82b01",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 8763,
       "stable-only": true,
       "url-template": "https://download.kde.org/stable/release-service/$version/src/skanpage-$version.tar.xz"
      }
     }
    ]
   }
  ]
 }
}