{
 "app_id": "eu.codepoems.xl-converter",
 "source_url": "https://raw.githubusercontent.com/flathub/eu.codepoems.xl-converter/master/eu.codepoems.xl-converter.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--filesystem=home",
  "--filesystem=/media",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 11,
 "fetched_at": "2026-09-17T16:09:54.311470+00:00",
 "manifest": {
  "id": "eu.codepoems.xl-converter",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "base": "io.qt.PySide.BaseApp",
  "base-version": "6.10",
  "command": "run.sh",
  "build-options": {
   "env": [
    "BASEAPP_REMOVE_WEBENGINE=1",
    "BASEAPP_DISABLE_NUMPY=1",
    "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=cc"
   ],
   "append-path": "/usr/lib/sdk/rust-stable/bin",
   "no-debuginfo": true,
   "strip": true
  },
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh",
   "rm -rfv /app/lib/python*/site-packages/OpenGL",
   "rm -rfv /app/lib/python*/site-packages/PyOpenGL*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/examples",
   "rm -rfv /app/lib/python*/site-packages/PySide6/Qt/lib/libav*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/Qt/lib/libsw*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/QtOpenGL*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/Qt3DRender*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/QtCharts*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/QtQuick*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/Qt3DExtras*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/QtLocation*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/QtDesigner*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/QtQml*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/QtBluetooth*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/QtSensors*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/QtSql*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/Qt3DAnimation*",
   "rm -rfv /app/lib/python*/site-packages/PySide6/Qt3DCore*",
   "rm -rfv /app/lib/libexec/webenginedriver",
   "rm -rfv /app/lib/libexec/QtWebEngineProcess",
   "rm -rfv /app/lib/libLLVM*",
   "rm -rfv /app/lib/libclang*",
   "rm -rfv /app/xl-converter/test*"
  ],
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--filesystem=home",
   "--filesystem=/media",
   "--socket=pulseaudio",
   "--share=network"
  ],
  "modules": [
   {
    "name": "libjxl",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_TESTING=OFF",
     "-DBUILD_SHARED_LIBS=ON",
     "-DJPEGXL_ENABLE_JPEGLI_LIBJPEG=OFF",
     "-DJPEGXL_ENABLE_VIEWERS=OFF",
     "-DJPEGXL_ENABLE_PLUGINS=OFF",
     "-DJPEGXL_ENABLE_OPENEXR=OFF",
     "-DJPEGXL_ENABLE_DEVTOOLS=OFF",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "post-install": [
     "mkdir -p /app/xl-converter/bin/linux",
     "cd /app/bin && mv cjxl djxl jxlinfo /app/xl-converter/bin/linux/",
     "cd /app/xl-converter/bin/linux/ && chmod 755 cjxl djxl jxlinfo"
    ],
    "cleanup": [
     "/bin/benchmark_xl"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libjxl/libjxl.git",
      "tag": "v0.12.0",
      "commit": "a7a9c787341cf703dede03c2009fa460cae5e5df",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "jpegli",
    "buildsystem": "cmake-ninja",
    "no-make-install": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_SHARED_LIBS=OFF",
     "-DBUILD_TESTING=OFF",
     "-DJPEGLI_ENABLE_TOOLS=ON",
     "-DJPEGLI_ENABLE_BENCHMARK=OFF",
     "-DJPEGLI_ENABLE_FUZZERS=OFF",
     "-DJPEGLI_ENABLE_JNI=OFF",
     "-DJPEGLI_ENABLE_SJPEG=OFF",
     "-DJPEGLI_ENABLE_OPENEXR=OFF",
     "-DJPEGLI_ENABLE_DEVTOOLS=OFF",
     "-DJPEGLI_ENABLE_DOXYGEN=OFF",
     "-DJPEGLI_BUNDLE_LIBPNG=ON"
    ],
    "post-install": [
     "install -Dm755 tools/cjpegli /app/xl-converter/bin/linux/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/google/jpegli.git",
      "commit": "031a0077f5799a6041004267fc12b956c1f52a20"
     }
    ]
   },
   {
    "name": "oxipng",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "CARGO_HOME": "/run/build/oxipng/cargo"
     }
    },
    "build-commands": [
     "ln -s config cargo/config.toml",
     "cargo --offline fetch --manifest-path Cargo.toml",
     "cargo --offline build --release",
     "install -Dm755 target/release/oxipng /app/xl-converter/bin/linux/oxipng"
    ],
    "sources": [
     "oxipng_sources.json",
     {
      "type": "git",
      "url": "https://github.com/shssoichiro/oxipng.git",
      "tag": "v10.2.1",
      "commit": "36f3ef8aac65ecf1761739ea2f2e530281f1312b",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "libavif",
    "buildsystem": "cmake-ninja",
    "no-make-install": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_SHARED_LIBS=0",
     "-DAVIF_BUILD_APPS=1",
     "-DAVIF_LIBYUV=LOCAL",
     "-DAVIF_LIBSHARPYUV=SYSTEM",
     "-DAVIF_JPEG=SYSTEM",
     "-DAVIF_ZLIBPNG=SYSTEM",
     "-DAVIF_CODEC_SVT=LOCAL",
     "-DAVIF_CODEC_AOM=LOCAL",
     "-DCMAKE_AR=/usr/bin/gcc-ar",
     "-DCMAKE_RANLIB=/usr/bin/gcc-ranlib",
     "-DCMAKE_INSTALL_PREFIX=/app"
    ],
    "post-install": [
     "install -Dm755 avifenc /app/xl-converter/bin/linux/avifenc",
     "install -Dm755 avifdec /app/xl-converter/bin/linux/avifdec"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://aomedia.googlesource.com/libavif.git",
      "tag": "v1.4.2",
      "commit": "c5240fc79fe5c2407e10afd35f5505ef6333ea49",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "git",
      "url": "https://chromium.googlesource.com/libyuv/libyuv.git",
      "dest": "ext/libyuv",
      "commit": "26e56be0f"
     },
     {
      "type": "git",
      "url": "https://github.com/maryla-uc/libargparse.git",
      "dest": "ext/libargparse",
      "commit": "81998ffafb9c2ac8cf488d31e536a2e6fd6b3fdf"
     },
     {
      "type": "git",
      "url": "https://github.com/psy-ex/svt-av1-psy.git",
      "dest": "ext/SVT-AV1",
      "tag": "v3.0.2",
      "commit": "e44e0a2f64089eec98f45a996d47f00ab9c531f2",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "git",
      "url": "https://github.com/1480c1/cpuinfo.git",
      "dest": "ext/SVT-AV1/third_party/cpuinfo",
      "commit": "e649baaa95efeb61517c06cc783287d4942ffe0e"
     },
     {
      "type": "patch",
      "path": "SVT-AV1-PSY.patch",
      "dest": "ext/SVT-AV1"
     },
     {
      "type": "git",
      "url": "https://aomedia.googlesource.com/aom.git",
      "dest": "ext/aom",
      "tag": "v3.14.1",
      "commit": "03087864cf4bea6abb0d28f95cf7843511413d8f",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "shell",
      "commands": [
       "cd ext &&\nsed -i -E \"/git clone/d\" libyuv.cmd svt.sh aom.cmd libargparse.cmd &&\nchmod +x libyuv.cmd svt.sh aom.cmd libargparse.cmd &&\n./libyuv.cmd &&\n./libargparse.cmd &&\n./svt.sh &&\n./aom.cmd\n"
      ]
     }
    ]
   },
   {
    "name": "ImageMagick",
    "buildsystem": "autotools",
    "config-opts": [
     "--enable-static",
     "--disable-shared",
     "--enable-hdri",
     "--with-quantum-depth=16",
     "--with-modules",
     "--without-perl",
     "--without-magick-plus-plus",
     "--with-png",
     "--with-jpeg",
     "--with-tiff",
     "--with-webp",
     "--with-jxl",
     "--with-zstd",
     "--with-bzlib",
     "--with-lzma",
     "--with-openjp2",
     "--with-heic",
     "--without-raw",
     "--disable-opencl",
     "--without-wmf",
     "--without-uhdr",
     "--without-djvu",
     "--without-openexr",
     "--without-raqm",
     "--without-jbig"
    ],
    "post-install": [
     "install -Dm755 utilities/magick /app/xl-converter/bin/linux/imagemagick/magick"
    ],
    "cleanup": [
     "/bin/magick",
     "/share/doc/ImageMagick-7"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ImageMagick/ImageMagick.git",
      "tag": "7.1.2-30",
      "commit": "344e9056f43764bfdf82456faf3bc2feee98a6fe",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+-\\d+)$"
      }
     }
    ]
   },
   {
    "name": "exiftool",
    "buildsystem": "simple",
    "build-commands": [
     "perl Makefile.PL",
     "make install"
    ],
    "cleanup": [
     "*.pod"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/exiftool/exiftool.git",
      "tag": "13.59",
      "commit": "2200871d9cef988051d2a99d67df3bda6cbb30a8",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^(\\d+.\\d+)$"
      }
     }
    ],
    "modules": [
     {
      "name": "exiftool-brotli",
      "buildsystem": "simple",
      "build-commands": [
       "perl-libs/install.sh"
      ],
      "post-install": [
       "chmod -Rf u+w /app/lib/perl5/site_perl"
      ],
      "sources": [
       "cpan_brotli_sources.json"
      ],
      "cleanup": [
       "/bin",
       "/man"
      ],
      "modules": [
       {
        "name": "brotli",
        "buildsystem": "cmake-ninja",
        "sources": [
         {
          "type": "git",
          "url": "https://github.com/google/brotli.git",
          "tag": "v1.2.0",
          "commit": "028fb5a23661f123017c060daa546b55cf4bde29",
          "x-checker-data": {
           "type": "git",
           "tag-pattern": "^v([\\d.]+)$"
          }
         }
        ]
       },
       {
        "name": "perl",
        "buildsystem": "simple",
        "build-commands": [
         "./Configure -des -Duseshrplib -Dman3dir=none -Dman1dir=none -Dprefix=/app",
         "make",
         "make install-strip"
        ],
        "cleanup": [
         "/bin/corelist",
         "/bin/cpan",
         "/bin/enc2xs",
         "/bin/encguess",
         "/bin/h2ph",
         "/bin/h2xs",
         "/bin/instmodsh",
         "/bin/json_pp",
         "/bin/libnetcfg",
         "/bin/perl5*",
         "/bin/perlbug",
         "/bin/perldoc",
         "/bin/perlivp",
         "/bin/perlthanks",
         "/bin/piconv",
         "/bin/pl2pm",
         "/bin/pod2html",
         "/bin/pod2man",
         "/bin/pod2text",
         "/bin/pod2usage",
         "/bin/podchecker",
         "/bin/prove",
         "/bin/ptar",
         "/bin/ptardiff",
         "/bin/ptargrep",
         "/bin/shasum",
         "/bin/splain",
         "/bin/streamzip",
         "/bin/xsubpp",
         "/bin/zipdetails",
         "*.pod"
        ],
        "build-options": {
         "cflags": "-fPIC",
         "ldflags": "-fpic",
         "strip": false
        },
        "post-install": [
         "chmod -R u+w /app/lib/perl5"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://www.cpan.org/src/5.0/perl-5.44.0.tar.xz",
          "sha256": "505cf43912e9480495c344c70260452e32aa2a73c546a026b3f100053b23ce91",
          "x-checker-data": {
           "type": "anitya",
           "project-id": 13599,
           "stable-only": true,
           "url-template": "https://www.cpan.org/src/${major}.0/perl-$version.tar.xz"
          }
         },
         {
          "type": "script",
          "dest-filename": "configure",
          "commands": [
           "exec ./configure.gnu $@"
          ]
         }
        ]
       }
      ]
     }
    ]
   },
   {
    "name": "xl-converter",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 xl-converter/misc/eu.codepoems.xl-converter.metainfo.xml /app/share/metainfo/eu.codepoems.xl-converter.metainfo.xml",
     "desktop-file-edit --set-icon=eu.codepoems.xl-converter xl-converter/misc/xl-converter.desktop",
     "desktop-file-edit --set-key=Exec --set-value=run.sh xl-converter/misc/xl-converter.desktop",
     "desktop-file-edit --remove-key=StartupWMClass xl-converter/misc/xl-converter.desktop",
     "install -Dm644 xl-converter/misc/xl-converter.desktop /app/share/applications/eu.codepoems.xl-converter.desktop",
     "install -Dm644 xl-converter/assets/icons/logo.svg /app/share/icons/hicolor/scalable/apps/eu.codepoems.xl-converter.svg",
     "install -Dm755 run.sh /app/bin/run.sh",
     "install -Dm755 bin/jpegtran /app/xl-converter/bin/linux/jpegtran",
     "cp -r xl-converter/* /app/xl-converter/"
    ],
    "modules": [
     "xl_converter_modules.yaml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/JacobDev1/xl-converter.git",
      "dest": "xl-converter",
      "commit": "cb211c1e67e638eff335549b8d0489673bc41c07"
     },
     {
      "type": "script",
      "commands": [
       "python3 /app/xl-converter/main.py \"$@\""
      ],
      "dest-filename": "run.sh"
     },
     {
      "type": "script",
      "commands": [
       "exec /usr/bin/jpegtran \"$@\""
      ],
      "dest": "bin",
      "dest-filename": "jpegtran"
     }
    ]
   }
  ]
 }
}