{
 "app_id": "io.github.ciromattia.kcc",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.ciromattia.kcc/master/io.github.ciromattia.kcc.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=home",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:10:45.056545+00:00",
 "manifest": {
  "app-id": "io.github.ciromattia.kcc",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm22"
  ],
  "base": "io.qt.PySide.BaseApp",
  "base-version": "6.11",
  "command": "kcc",
  "rename-icon": "comic2ebook",
  "finish-args": [
   "--socket=fallback-x11",
   "--socket=wayland",
   "--share=ipc",
   "--device=dri",
   "--filesystem=home",
   "--talk-name=org.freedesktop.Notifications",
   "--env=TMPDIR=/var/tmp"
  ],
  "build-options": {
   "env": {
    "BASEAPP_REMOVE_WEBENGINE": "1"
   }
  },
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "modules": [
   "dependencies/qemu-user-i386.yaml",
   "dependencies/7-zip.yaml",
   "dependencies/python3-requirements.yaml",
   {
    "name": "KindleComicConverter",
    "buildsystem": "simple",
    "build-commands": [
     "python3 setup.py egg_info",
     "pip3 install --verbose --exists-action=i --no-index --prefix=${FLATPAK_DEST} -r KindleComicConverter.egg-info/requires.txt",
     "python3 setup.py install --single-version-externally-managed --root=/ --prefix=$FLATPAK_DEST",
     "install -Dm755 kindlegen -t $FLATPAK_DEST/bin",
     "install -Dm755 ${FLATPAK_ID}.desktop -t $FLATPAK_DEST/share/applications",
     "install -Dm644 ${FLATPAK_ID}.metainfo.xml -t $FLATPAK_DEST/share/metainfo",
     "install -Dm644 icons/comic2ebook.png -t $FLATPAK_DEST/share/icons/hicolor/256x256/apps"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ciromattia/kcc/archive/v11.3.2.tar.gz",
      "sha256": "f6879f49143b1d180c650ded08a28e76195e138d82913c64dd87f403b274cdd8",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/ciromattia/kcc/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": "\"https://github.com/ciromattia/kcc/archive/v\" + $version + \".tar.gz\"",
       "timestamp-query": ".published_at",
       "is-main-source": true
      }
     },
     {
      "type": "patch",
      "path": "patch/flatpak.patch"
     },
     {
      "type": "file",
      "path": "io.github.ciromattia.kcc.desktop"
     },
     {
      "type": "file",
      "path": "io.github.ciromattia.kcc.metainfo.xml"
     },
     {
      "type": "script",
      "dest-filename": "kindlegen",
      "commands": [
       "chmod 755 ${XDG_DATA_HOME}/kindlegen",
       "exec qemu-i386 ${XDG_DATA_HOME}/kindlegen \"$@\""
      ]
     }
    ]
   }
  ]
 }
}