{
 "app_id": "org.gnome.OCRFeeder",
 "source_url": "https://raw.githubusercontent.com/flathub/org.gnome.OCRFeeder/master/org.gnome.OCRFeeder.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=wayland",
  "--socket=x11",
  "--device=all",
  "--filesystem=home",
  "--filesystem=xdg-run/gvfsd",
  "--filesystem=xdg-run/gvfs",
  "--talk-name=org.gtk.vfs.*",
  "--talk-name=org.freedesktop.DBus.Peer.Ping",
  "--talk-name=org.freedesktop.DBus",
  "--system-talk-name=org.freedesktop.Avahi",
  "--system-talk-name=org.freedesktop.DBus.Peer.Ping",
  "--system-talk-name=org.freedesktop.DBus"
 ],
 "module_count": 33,
 "fetched_at": "2026-09-19T15:40:42.649789+00:00",
 "manifest": {
  "app-id": "org.gnome.OCRFeeder",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "ocrfeeder",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=wayland",
   "--filesystem=home",
   "--share=network",
   "--metadata=X-DConf=migrate-path=/org/gnome/ocrfeeder/",
   "--filesystem=xdg-run/gvfs",
   "--filesystem=xdg-run/gvfsd",
   "--talk-name=org.gtk.vfs.*",
   "--device=all",
   "--system-talk-name=org.freedesktop.Avahi",
   "--talk-name=org.freedesktop.DBus",
   "--system-talk-name=org.freedesktop.DBus",
   "--talk-name=org.freedesktop.DBus.Peer.Ping",
   "--system-talk-name=org.freedesktop.DBus.Peer.Ping",
   "--env=DBUS_FATAL_WARNINGS=0"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/gtk-doc",
   "/share/vala",
   "/man",
   "/share/doc",
   "/share/man",
   "*.a",
   "*.la"
  ],
  "modules": [
   {
    "name": "OCRFeeder",
    "config-opts": [
     "--enable-maintainer-mode",
     "--enable-sandbox",
     "--with-python_prefix=/app"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.gnome.org/GNOME/ocrfeeder/-/archive/0.8.5/ocrfeeder-0.8.5.tar.bz2",
      "sha256": "3ec08138ae747960d67cdd30fbdaf511ed611f038a0648434d8b21dddc4f48ec"
     },
     {
      "type": "patch",
      "paths": [
       "patches/ocrfeeder-0.8.1-fix-scanning-0.patch",
       "patches/ocrfeeder-screenshot-link.patch",
       "patches/ocrfeeder-pillow.patch"
      ]
     },
     {
      "type": "shell",
      "commands": [
       "cp /usr/share/aclocal/ax_python_module.m4 ./m4/m4_ax_python_module.m4"
      ]
     }
    ],
    "modules": [
     "sane-backends/sane-backends.yaml",
     "ghostscript.yaml",
     {
      "name": "tesseract",
      "config-opts": [
       "--disable-static",
       "--disable-graphics",
       "--enable-legacy"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/tesseract-ocr/tesseract/archive/4.1.1.tar.gz",
        "sha256": "2a66ff0d8595bff8f04032165e6c936389b1e5727c3ce5a27b3e059d218db1cb"
       },
       {
        "type": "git",
        "url": "https://github.com/tesseract-ocr/tessdata_best.git",
        "commit": "9e8aeef07ce8c4f6e6519577cee76363246bc6de",
        "dest": "traineddata"
       },
       {
        "type": "patch",
        "paths": [
         "patches/tesseract-4.1.1-datadir.patch",
         "patches/tesseract-build-fix.patch"
        ]
       }
      ],
      "post-install": [
       "install -p -D -m 0644 \"traineddata\"/*.traineddata -t \"${FLATPAK_DEST}/share/tesseract/tessdata/\";",
       "install -p -D -m 0644 \"traineddata/script\"/*.traineddata -t \"${FLATPAK_DEST}/share/tesseract/tessdata/script/\";"
      ],
      "modules": [
       "leptonica.yaml"
      ]
     },
     {
      "name": "ocrad",
      "sources": [
       {
        "type": "file",
        "url": "https://ftp.gnu.org/gnu/ocrad/ocrad-0.29.tar.lz",
        "sha256": "11200cc6b0b7ba16884a72dccb58ef694f7aa26cd2b2041e555580f064d2d9e9",
        "dest-filename": "ocrad.tar.lz"
       },
       {
        "type": "shell",
        "commands": [
         "tar xf \"ocrad.tar.lz\" --strip-components=1;"
        ]
       },
       {
        "type": "patch",
        "path": "patches/ocrad-0.25-nostatic.patch"
       }
      ]
     },
     {
      "name": "gocr",
      "sources": [
       {
        "type": "archive",
        "url": "https://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.50.tar.gz",
        "sha256": "bc261244f887419cba6d962ec1ad58eefd77176885093c4a43061e7fd565f5b5",
        "mirror-urls": [
         "https://github.com/flathub/org.gnome.OCRFeeder/releases/download/deps/gocr-0.50.tar.gz"
        ]
       }
      ],
      "modules": [
       "netpbm.yaml"
      ]
     },
     {
      "name": "GraphicsMagick",
      "config-opts": [
       "--enable-shared",
       "--disable-static",
       "--with-modules",
       "--with-threads",
       "--with-perl",
       "--with-quantum-depth=16"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://downloads.sourceforge.net/graphicsmagick/GraphicsMagick-1.3.45.tar.xz",
        "sha256": "dcea5167414f7c805557de2d7a47a9b3147bcbf617b91f5f0f4afe5e6543026b"
       }
      ],
      "cleanup": [
       "/share/doc/GraphicsMagick/www"
      ]
     },
     {
      "name": "cuneiform",
      "buildsystem": "cmake-ninja",
      "builddir": true,
      "build-options": {
       "cflags": "-fcommon -fpermissive -std=gnu17",
       "cxxflags": "-fcommon"
      },
      "config-opts": [
       "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
       "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://launchpad.net/cuneiform-linux/1.1/1.1/+download/cuneiform-linux-1.1.0.tar.bz2",
        "sha256": "577e0d054de72086c33b4e8ae15033657776509b9a7af6eb272888eefcbdbbad"
       },
       {
        "type": "patch",
        "paths": [
         "patches/cuneiform-1.1.0-graphicsmagick.patch",
         "patches/cuneiform-1.1.0-libm.patch",
         "patches/cuneiform-1.1.0-c-assert.patch",
         "patches/cuneiform-1.1.0-size4to5.patch",
         "patches/cuneiform-1.1.0-fix_buffer_overflow.patch",
         "patches/cuneiform-1.1.0-fix_buffer_overflow_2.patch",
         "patches/cuneiform-1.1.0-gcc6.patch",
         "patches/cuneiform-1.1.0-gcc7.patch",
         "patches/cuneiform-1.1.0-typos.patch",
         "patches/cuneiform-1.1.0-gcc11.patch",
         "patches/cuneiform-1.1.0-gcc14.patch",
         "patches/cuneiform-1.1.0-cmake-libdir.patch"
        ]
       }
      ]
     },
     {
      "name": "goocanvas2",
      "no-autogen": true,
      "build-options": {
       "cflags": "-fpermissive"
      },
      "config-opts": [
       "--enable-shared",
       "--disable-static",
       "--enable-maintainer-mode",
       "--disable-gtk-doc",
       "--with-pygi_overrides_dir=/app/lib/python3.13/site-packages/gi/overrides"
      ],
      "make-install-args": [
       "girdir=/app/share/gir-1.0",
       "typelibdir=/app/lib/girepository-1.0"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://download.gnome.org/sources/goocanvas/2.0/goocanvas-2.0.4.tar.xz",
        "sha256": "c728e2b7d4425ae81b54e1e07a3d3c8a4bd6377a63cffa43006045bceaa92e90"
       },
       {
        "type": "patch",
        "path": "patches/goocanvas-2.0.4-pyoverridesdir.patch"
       },
       {
        "type": "shell",
        "commands": [
         "cp -p /usr/share/automake-*/config.{sub,guess} .",
         "autoreconf -fvi"
        ]
       }
      ]
     },
     {
      "name": "djvulibre",
      "config-opts": [
       "--disable-desktopfiles",
       "--enable-threads"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://downloads.sourceforge.net/djvu/djvulibre-3.5.29.tar.gz",
        "sha256": "d3b4b03ae2bdca8516a36ef6eb27b777f0528c9eda26745d9962824a3fdfeccf"
       },
       {
        "type": "patch",
        "path": "patches/djvulibre-3.5.27-export-file.patch"
       }
      ],
      "cleanup": [
       "/bin"
      ]
     },
     {
      "name": "unpaper",
      "config-opts": [
       "--enable-maintainer-mode"
      ],
      "build-options": {
       "env": {
        "MANPAGE_XSL": "/usr/share/xml/docbook/xml/xsl-stylesheets/manpages/docbook.xsl"
       }
      },
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/Flameeyes/unpaper/archive/unpaper-6.1.tar.gz",
        "sha256": "213f8143b3361dde3286537eb66aaf7cdd7e4f5e7bde42ac6e91020997a81f1d"
       },
       {
        "type": "shell",
        "commands": [
         "autoreconf -vfi"
        ]
       }
      ],
      "modules": [
       "ffmpeg.yaml"
      ]
     },
     {
      "name": "gnome-common",
      "rm-configure": true,
      "config-opts": [
       "--enable-maintainer-mode"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://download.gnome.org/sources/gnome-common/3.18/gnome-common-3.18.0.tar.xz",
        "sha256": "22569e370ae755e04527b76328befc4c73b62bfd4a572499fde116b8318af8cf"
       }
      ],
      "cleanup": [
       "*"
      ]
     },
     {
      "name": "enchant",
      "build-options": {
       "cflags": "-fpermissive"
      },
      "config-opts": [
       "--disable-static",
       "--enable-myspell",
       "--with-myspell-dir=/app/share/myspell"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/rrthomas/enchant/releases/download/enchant-1-6-1/enchant-1.6.1.tar.gz",
        "sha256": "bef0d9c0fef2e4e8746956b68e4d6c6641f6b85bd2908d91731efb68eba9e3f5"
       },
       {
        "type": "shell",
        "commands": [
         "cp -p /usr/share/automake-*/config.{sub,guess} ."
        ]
       }
      ],
      "cleanup": [
       "/bin"
      ]
     },
     {
      "name": "enchant2",
      "config-opts": [
       "--disable-static",
       "--with-hunspell",
       "--with-hunspell-dir=/app/share/hunspell"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/rrthomas/enchant/releases/download/v2.2.15/enchant-2.2.15.tar.gz",
        "sha256": "3b0f2215578115f28e2a6aa549b35128600394304bd79d6f28b0d3b3d6f46c03"
       },
       {
        "type": "patch",
        "path": "patches/enchant2-2.2.8-aspell.patch"
       },
       {
        "type": "shell",
        "commands": [
         "cp -p /usr/share/automake-*/config.{sub,guess} .",
         "autoreconf -vfi"
        ]
       }
      ],
      "cleanup": [
       "/bin"
      ]
     },
     "shared-modules/intltool/intltool-0.51.json",
     {
      "name": "gtkspell",
      "config-opts": [
       "--disable-gtk-doc"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://downloads.sourceforge.net/gtkspell/gtkspell3-3.0.10.tar.xz",
        "sha256": "b040f63836b347eb344f5542443dc254621805072f7141d49c067ecb5a375732"
       }
      ]
     },
     {
      "name": "iso-codes",
      "sources": [
       {
        "type": "archive",
        "url": "https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/iso-codes-4.4/iso-codes-iso-codes-4.4.tar.bz2",
        "sha256": "c676a78bb56b47638edbe0fc35570f88705e350f03e69adbac550d743ee3a00b"
       },
       {
        "type": "shell",
        "commands": [
         "cp -p /usr/share/automake-*/config.{sub,guess} ."
        ]
       }
      ]
     },
     {
      "name": "dictionaries",
      "buildsystem": "simple",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/LibreOffice/dictionaries/archive/libreoffice-6.4.2.2.tar.gz",
        "sha256": "1d2418bc06f11d8c53551c4702b0e471a42eb041f990c122b0080401f39ef5e8"
       },
       {
        "type": "file",
        "path": "install-dicts.py"
       },
       {
        "type": "file",
        "path": "th_gen_idx.pl"
       }
      ],
      "build-commands": [
       "python3 install-dicts.py */dictionaries.xcu;",
       "ln -s \"${FLATPAK_DEST}/share/hunspell\" \"${FLATPAK_DEST}/share/myspell\";"
      ]
     },
     "python3-pyenchant.yaml",
     "python3-lxml.yaml",
     {
      "name": "python3-Pillow",
      "buildsystem": "simple",
      "build-options": {
       "cflags": "-fpermissive"
      },
      "sources": [
       {
        "type": "file",
        "url": "https://files.pythonhosted.org/packages/cd/74/ad3d526f3bf7b6d3f408b73fde271ec69dfac8b81341a318ce825f2b3812/pillow-10.4.0.tar.gz",
        "sha256": "166c1cd4d24309b30d61f79f4a9114b7b2313d7450912277855ff5dfd7cd4a06"
       }
      ],
      "build-commands": [
       "pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation Pillow"
      ]
     },
     {
      "name": "python3-reportlab",
      "buildsystem": "simple",
      "build-options": {
       "cflags": "-std=gnu17"
      },
      "sources": [
       {
        "type": "file",
        "url": "https://files.pythonhosted.org/packages/65/82/45b443db5acaf7edb471be57335a22d9f3bb6e4e9c9133ffa926f8ecdf2a/reportlab-3.6.13.tar.gz",
        "sha256": "6f75d33f7a3720cf47371ab63ced0f0ebd1aeb6db19386ae92f8977a09be9611"
       }
      ],
      "build-commands": [
       "pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation reportlab"
      ]
     },
     "python3-python-sane.yaml",
     "python3-odfpy.yaml",
     {
      "name": "fonts",
      "buildsystem": "simple",
      "sources": [
       {
        "type": "file",
        "path": "fonts.conf"
       }
      ],
      "build-commands": [
       "install -Dm644 \"fonts.conf\" \"${FLATPAK_DEST}/etc/fonts/local.conf\"",
       "fc-cache -fsv ||:;"
      ],
      "modules": [
       "google-droid-sans-fallback-full.yaml",
       "vlgothic-fonts.yaml",
       "naver-nanum-gothic-fonts.yaml",
       "jsmath-fonts.yaml"
      ]
     },
     {
      "name": "python3-imghdr",
      "buildsystem": "simple",
      "build-commands": [
       "pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=/app --no-build-isolation standard-imghdr"
      ],
      "sources": [
       {
        "type": "file",
        "url": "https://files.pythonhosted.org/packages/1a/8d/ab2620fbe2e348483c9cb776c3b7b3cc407899291a041d7fa026469b7cd1/standard_imghdr-3.13.0.tar.gz",
        "sha256": "8d9c68058d882f6fc3542a8d39ef9ff94d2187dc90bd0c851e0902776b7b7a42"
       }
      ]
     }
    ],
    "cleanup": [
     "/lib/pkgconfig",
     "/share/gtk-doc",
     "/share/pkgconfig"
    ]
   }
  ]
 }
}