{
 "app_id": "io.github.amarz45.Comicpress",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.amarz45.Comicpress/master/io.github.amarz45.Comicpress.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=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:10:34.481945+00:00",
 "manifest": {
  "id": "io.github.amarz45.Comicpress",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "command": "comicpress",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=dri"
  ],
  "modules": [
   {
    "name": "pdfium",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p pdfium/third_party/icu",
     "ln -sf ../../build/linux/unbundle/icu.gn pdfium/third_party/icu/BUILD.gn",
     "mkdir -p pdfium/tools/generate_shim_headers",
     "base64 --decode generate_shim_headers.py > pdfium/tools/generate_shim_headers/generate_shim_headers.py",
     "touch pdfium/build/config/gclient_args.gni",
     "gn --root=pdfium gen pdfium/out/Release --args=\"is_clang=false use_sysroot=false is_debug=false symbol_level=0 pdf_enable_v8=false pdf_enable_xfa=false treat_warnings_as_errors=false use_system_libjpeg=true use_system_zlib=true pdf_bundle_freetype=false use_system_freetype=true use_system_lcms2=true use_system_libpng=true use_custom_libcxx=false pdf_is_standalone=true use_system_libopenjpeg2=true is_component_build=true pdf_use_partition_alloc=false\"",
     "ninja -C pdfium/out/Release pdfium",
     "install -D -m644 pdfium/LICENSE \"$FLATPAK_DEST/share/licenses/pdfium/LICENSE\"",
     "install -D pdfium/public/*.h --target-directory=\"$FLATPAK_DEST/include/pdfium\"",
     "install -D pdfium/public/cpp/* --target-directory=\"$FLATPAK_DEST/include/pdfium/cpp\"",
     "install -D pdfium/docs/* --target-directory=\"$FLATPAK_DEST/share/doc/pdfium\"",
     "install -Dm755 pdfium/out/Release/libpdfium.so --target-directory=\"$FLATPAK_DEST/lib\"",
     "install -Dm644 pdfium.pc --target-directory=\"$FLATPAK_DEST/lib/pkgconfig\""
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://pdfium.googlesource.com/pdfium",
      "commit": "84a8011ec69d0e2de271c05be7d62979608040d9",
      "dest": "pdfium"
     },
     {
      "type": "patch",
      "path": "patches/pdfium_exclude_test_fonts.diff",
      "dest": "pdfium"
     },
     {
      "type": "git",
      "url": "https://chromium.googlesource.com/chromium/src/build.git",
      "commit": "9b11bd3a6a523134ac35bcc9d1f59d04cc6f5821",
      "dest": "pdfium/build"
     },
     {
      "type": "patch",
      "path": "patches/chromium_build_arm64_remove_toolchain_prefix.diff",
      "dest": "pdfium/build"
     },
     {
      "type": "patch",
      "path": "patches/chromium_build_use_correct_no-outline_for_gcc.diff",
      "dest": "pdfium/build"
     },
     {
      "type": "git",
      "url": "https://chromium.googlesource.com/chromium/src/third_party/abseil-cpp",
      "commit": "d2ea9f0eb1a31f0e5a0ab11837ed19333700ab4c",
      "dest": "pdfium/third_party/abseil-cpp"
     },
     {
      "type": "patch",
      "path": "patches/abseil-cpp_make_library_static.diff",
      "dest": "pdfium/third_party/abseil-cpp"
     },
     {
      "type": "file",
      "url": "https://chromium.googlesource.com/chromium/src/+/959f41a7f58755d4644f98a14197b5b89c0d7542/tools/generate_shim_headers/generate_shim_headers.py?format=TEXT",
      "dest-filename": "generate_shim_headers.py",
      "sha256": "c405eb998cc9c27d724c945f3db8a7b9d2be62ac38049301f4f52929f734b5a9"
     },
     {
      "type": "file",
      "path": "pdfium.pc"
     },
     {
      "type": "git",
      "url": "https://github.com/fastfloat/fast_float",
      "tag": "v7.0.0",
      "commit": "cb1d42aaa1e14b09e1452cfdef373d051b8c02a4",
      "dest": "pdfium/third_party/fast_float/src"
     }
    ],
    "modules": [
     {
      "name": "gn",
      "buildsystem": "simple",
      "build-options": {
       "env": {
        "CC": "gcc",
        "CXX": "g++"
       }
      },
      "build-commands": [
       "./build/gen.py",
       "ninja -C out gn",
       "install -Dm755 out/gn \"$FLATPAK_DEST/bin/gn\""
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://gn.googlesource.com/gn",
        "commit": "95b0f8fe31a992a33c040bbe3867901335c12762",
        "disable-shallow-clone": true
       }
      ]
     }
    ]
   },
   {
    "name": "libimagequant",
    "buildsystem": "simple",
    "build-commands": [
     "./configure --prefix=/app",
     "make shared",
     "make install PREFIX=/app",
     "install -Dm644 COPYRIGHT \"$FLATPAK_DEST/share/licenses/libimagequant/COPYRIGHT\""
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ImageOptim/libimagequant.git",
      "tag": "2.17.0",
      "commit": "a6cc4ade66710ec799ca41297f6d2c2b4070d0ff"
     }
    ]
   },
   {
    "name": "libvips",
    "buildsystem": "meson",
    "config-opts": [
     "--libdir=lib",
     "-Ddeprecated=false",
     "-Dexamples=false",
     "-Dheif=enabled",
     "-Djpeg-xl=enabled",
     "-Dwebp=enabled",
     "-Dpng=enabled",
     "-Djpeg=enabled"
    ],
    "post-install": [
     "install -Dm644 ../LICENSE \"$FLATPAK_DEST/share/licenses/libvips/LICENSE\""
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libvips/libvips.git",
      "tag": "v8.17.2",
      "commit": "0b9ea3a62477f670421868337dfaf13e8aa9d754"
     }
    ]
   },
   {
    "name": "comicpress",
    "buildsystem": "meson",
    "config-opts": [
     "--buildtype=release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/amarz45/comicpress.git",
      "tag": "v1.2.1",
      "commit": "cc68fad753d56556dd17d2bbd2e34d4cd43ced0f"
     }
    ]
   }
  ]
 }
}