{
 "app_id": "com.github._4lex4.ScanTailor-Advanced",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github._4lex4.ScanTailor-Advanced/master/com.github._4lex4.ScanTailor-Advanced.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--device=dri",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=host",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:07:30.260199+00:00",
 "manifest": {
  "app-id": "com.github._4lex4.ScanTailor-Advanced",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "command": "scantailor",
  "rename-desktop-file": "scantailor.desktop",
  "rename-icon": "ScanTailor",
  "rename-mime-file": "scantailor-project.xml",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--device=dri",
   "--filesystem=host"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/doc",
   "/share/man"
  ],
  "modules": [
   {
    "name": "boost",
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.68.0/source/boost_1_68_0.tar.bz2",
      "sha256": "7f6130bc3cf65f56a618888ce9d5ea704fa10b462be126ad053e80e553d6d8b7"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --prefix=/app --with-libraries=test,system,signals",
     "./b2 -j \"${FLATPAK_BUILDER_N_JOBS}\" install"
    ]
   },
   {
    "name": "scantailor-advanced",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/4lex4/scantailor-advanced.git",
      "tag": "v1.0.16",
      "commit": "5e0068f5139575bce07d2284f12e1d3cf4609e9c",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/4lex4/scantailor-advanced/releases",
       "tag-query": "[.[] | select(.draft == false and (.prerelease == false or (.tag_name | startswith(\"v\"))))][0].tag_name"
      }
     },
     {
      "type": "file",
      "path": "com.github._4lex4.ScanTailor-Advanced.metainfo.xml.in"
     },
     {
      "type": "patch",
      "path": "scantailor-square-appicon.patch"
     },
     {
      "type": "patch",
      "path": "scantailor-qt5.15.patch"
     },
     {
      "type": "patch",
      "path": "scantailor-tiffsave-fix.patch"
     }
    ],
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "post-install": [
     "# Set version and release data in our custom Metainfo and install it\nset -e\nversion=\"$(git describe --tags --exact-match)\"\ndate=\"$(git log -1 --date=short --format=%cd)\"\nsed -e \"s/{RELEASE_VERSION}/${version}/g\" -e \"s/{RELEASE_DATE}/${date}/g\" com.github._4lex4.ScanTailor-Advanced.metainfo.xml.in >com.github._4lex4.ScanTailor-Advanced.metainfo.xml\ninstall -Dm0644 -t /app/share/metainfo com.github._4lex4.ScanTailor-Advanced.metainfo.xml\n"
    ]
   }
  ]
 }
}