{
 "app_id": "org.xfce.ristretto",
 "source_url": "https://raw.githubusercontent.com/flathub/org.xfce.ristretto/master/org.xfce.ristretto.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=session-bus",
  "--socket=wayland",
  "--filesystem=host",
  "--filesystem=xdg-run/gvfs",
  "--talk-name=org.freedesktop.FileManager1"
 ],
 "module_count": 13,
 "fetched_at": "2026-09-17T16:16:57.237302+00:00",
 "manifest": {
  "app-id": "org.xfce.ristretto",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "ristretto",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--filesystem=host",
   "--socket=session-bus",
   "--talk-name=org.freedesktop.FileManager1",
   "--filesystem=xdg-run/gvfs",
   "--env=GDK_PIXBUF_MODULE_FILE=/app/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/lib/cmake",
   "/lib/girepository-1.0",
   "/lib/pkgconfig",
   "/include",
   "/share/gir-1.0",
   "/share/gtk-doc"
  ],
  "modules": [
   {
    "name": "libxfce4util",
    "cleanup": [
     "/sbin"
    ],
    "buildsystem": "meson",
    "config-opts": [
     "--buildtype=minsize",
     "--auto-features=enabled",
     "-Dvala=disabled"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archive.xfce.org/src/xfce/libxfce4util/4.20/libxfce4util-4.20.1.tar.bz2",
      "sha256": "84bfc4daab9e466193540c3665eee42b2cf4d24e3f38fc3e8d1e0a2bebe3b8f1",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 232001,
       "url-template": "https://archive.xfce.org/src/xfce/libxfce4util/$major.$minor/libxfce4util-$version.tar.bz2"
      }
     }
    ]
   },
   {
    "name": "xfconf",
    "cleanup": [
     "/bin",
     "/share/bash-completion"
    ],
    "buildsystem": "meson",
    "config-opts": [
     "--auto-features=enabled",
     "--buildtype=minsize",
     "-Dvala=disabled",
     "-Dservice-name-prefix=org.xfce.ristretto"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archive.xfce.org/src/xfce/xfconf/4.21/xfconf-4.21.2.tar.xz",
      "sha256": "99aa4366e909ba7b9f746aba48b610b9e9d2933aeb283c7fa5f37a7c3dc7a3a6",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 14854,
       "stable-only": false,
       "url-template": "https://archive.xfce.org/src/xfce/xfconf/$major.$minor/xfconf-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "libxfce4ui",
    "cleanup": [
     "/bin",
     "/etc",
     "/share/icons",
     "/share/applications"
    ],
    "buildsystem": "meson",
    "config-opts": [
     "--auto-features=enabled",
     "--buildtype=minsize",
     "-Dvala=disabled",
     "-Dstartup-notification=disabled",
     "-Dlibgtop=disabled",
     "-Dglade=disabled"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archive.xfce.org/src/xfce/libxfce4ui/4.21/libxfce4ui-4.21.0.tar.xz",
      "sha256": "dd75ff86b6ac814cf71c66004494394eeab962f5360e8e88fa724fa972b9da7b"
     },
     {
      "type": "patch",
      "path": "patches/0001-meson-build-Define-missing-dependencies-when-libgtop.patch"
     },
     {
      "type": "patch",
      "path": "patches/0001-build-Replace-xdt-csource-with-glib-compile-resource.patch"
     },
     {
      "type": "patch",
      "path": "patches/0002-build-Add-xdt-gen-visibility-to-get-rid-of-autotools.patch",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 232000,
       "stable-only": false,
       "url-template": "https://archive.xfce.org/src/xfce/libxfce4ui/$major.$minor/libxfce4ui-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "libopenraw",
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://libopenraw.freedesktop.org/download/libopenraw-0.3.7.tar.xz",
      "sha256": "0ece41951b2cd91e43f6a8a5c6a894bbc8b5923b4e49a82ebb6d8ce62bded68c",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 7980,
       "url-template": "https://libopenraw.freedesktop.org/download/libopenraw-$version.tar.xz"
      }
     },
     {
      "type": "patch",
      "path": "patches/build-Honor-installation-prefix-also-for-the-pixbuf-.patch"
     },
     {
      "type": "shell",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ],
    "modules": [
     {
      "name": "boost",
      "cleanup": [
       "*"
      ],
      "buildsystem": "simple",
      "build-commands": [
       "./bootstrap.sh --prefix=/app --with-libraries=test",
       "./b2 install variant=release link=shared runtime-link=shared cxxflags=\"$CXXFLAGS\" linkflags=\"$LDFLAGS\" -j $FLATPAK_BUILDER_N_JOBS"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://archives.boost.io/release/1.92.0/source/boost_1_92_0.tar.gz",
        "sha256": "c4a3b310ddd2472416e091067166b0713be97c63f38c212c484ada022fd296ce",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 6845,
         "url-template": "https://archives.boost.io/release/$version/source/boost_${version0}_${version1}_$version2.tar.gz"
        }
       }
      ]
     }
    ]
   },
   {
    "name": "libheif",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF",
     "-DWITH_OpenH264_DECODER=OFF",
     "-DENABLE_PLUGIN_LOADING=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/strukturag/libheif/releases/download/v1.23.4/libheif-1.23.4.tar.gz",
      "sha256": "d0c02b4b0e978f34a1974b6f3eea7975a537bf7a9195ffeea38e7242ff316fdd",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/strukturag/libheif/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".assets | map(select(.name==\"libheif-\\($version).tar.gz\")) | first | .browser_download_url"
      }
     },
     {
      "type": "shell",
      "commands": [
       "sed -i 's|DESTINATION ${GDKPIXBUF2_MODULE_DIR}|DESTINATION /app/lib/gdk-pixbuf-2.0/2.10.0/loaders|' gdk-pixbuf/CMakeLists.txt"
      ]
     }
    ],
    "modules": [
     {
      "name": "libde265",
      "cleanup": [
       "/bin"
      ],
      "buildsystem": "cmake",
      "config-opts": [
       "-DENABLE_ENCODER=OFF",
       "-DENABLE_DECODER=OFF",
       "-DENABLE_SHERLOCK265=OFF"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/strukturag/libde265/releases/download/v1.1.3/libde265-1.1.3.tar.gz",
        "sha256": "554228bd17788c99a7e63b37ab5634722190e6e2bf60c1dcb01cef328e133905",
        "x-checker-data": {
         "type": "json",
         "url": "https://api.github.com/repos/strukturag/libde265/releases/latest",
         "version-query": ".tag_name | sub(\"^v\"; \"\")",
         "url-query": ".assets | map(select(.name==\"libde265-\\($version).tar.gz\")) | first | .browser_download_url"
        }
       }
      ]
     }
    ]
   },
   {
    "name": "libwmf",
    "cleanup": [
     "/bin"
    ],
    "config-opts": [
     "--with-freetype=/usr"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/caolanm/libwmf.git",
      "tag": "v0.2.16",
      "commit": "a916f30f6232cf3e28df285fcba5753ee5b1aa0f",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/caolanm/libwmf/releases/latest",
       "tag-query": ".tag_name",
       "version-query": "$tag | sub(\"^v\"; \"\")",
       "timestamp-query": ".published_at"
      }
     },
     {
      "type": "shell",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "webp-pixbuf-loader",
    "buildsystem": "meson",
    "config-opts": [
     "-Dgdk_pixbuf_moduledir=/app/lib/gdk-pixbuf-2.0/2.10.0/loaders/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/aruiz/webp-pixbuf-loader.git",
      "tag": "0.2.7",
      "commit": "52232e4ba282b2fed68e8fcb4b5d45ed0eaa4ed3",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/aruiz/webp-pixbuf-loader/releases/latest",
       "tag-query": ".tag_name",
       "version-query": "$tag",
       "timestamp-query": ".published_at"
      }
     }
    ]
   },
   {
    "name": "libavif",
    "buildsystem": "cmake",
    "config-opts": [
     "-DAVIF_BUILD_GDK_PIXBUF=ON",
     "-DAVIF_LIBYUV=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/AOMediaCodec/libavif.git",
      "tag": "v1.4.2",
      "commit": "c5240fc79fe5c2407e10afd35f5505ef6333ea49",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 178015,
       "tag-template": "v$version"
      }
     },
     {
      "type": "shell",
      "commands": [
       "sed -i 's|DESTINATION ${GDK_PIXBUF_MODULEDIR}|DESTINATION /app/lib/gdk-pixbuf-2.0/2.10.0/loaders|' contrib/gdk-pixbuf/CMakeLists.txt"
      ]
     }
    ]
   },
   {
    "name": "update-pixbuf-loaders",
    "buildsystem": "simple",
    "build-commands": [
     "GDK_PIXBUF_MODULEDIR=/app/lib/gdk-pixbuf-2.0/2.10.0/loaders/ gdk-pixbuf-query-loaders > /app/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache",
     "gdk-pixbuf-query-loaders >> /app/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
    ]
   },
   {
    "name": "tumbler",
    "cleanup": [
     "/lib/systemd",
     "/share/icons"
    ],
    "post-install": [
     "sed -i '/^SystemdService=/d' /app/share/dbus-1/services/org.xfce.ristretto.*.service"
    ],
    "buildsystem": "meson",
    "config-opts": [
     "--buildtype=minsize",
     "--auto-features=enabled",
     "-Dcover-thumbnailer=disabled",
     "-Dfont-thumbnailer=disabled",
     "-Dffmpeg-thumbnailer=disabled",
     "-Dgst-thumbnailer=disabled",
     "-Dodf-thumbnailer=disabled",
     "-Dpoppler-thumbnailer=disabled",
     "-Dgepub-thumbnailer=disabled",
     "-Dservice-name-prefix=org.xfce.ristretto",
     "-Draw-thumbnailer=disabled"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archive.xfce.org/src/xfce/tumbler/4.21/tumbler-4.21.1.tar.xz",
      "sha256": "0f499f79a2a7ee49726a433584dd8a680d514101b72bd1b003360611ce1dc244",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5014,
       "stable-only": false,
       "url-template": "https://archive.xfce.org/src/xfce/tumbler/$major.$minor/tumbler-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "ristretto",
    "buildsystem": "meson",
    "config-opts": [
     "--buildtype=minsize",
     "--auto-features=enabled",
     "-Dservice-name-prefix=org.xfce.ristretto"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archive.xfce.org/src/apps/ristretto/0.14/ristretto-0.14.0.tar.xz",
      "sha256": "502cf1577de14b38132dc89e56884c5e10f86f6a028d8dde379a8839110fda55",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 8365,
       "url-template": "https://archive.xfce.org/src/apps/ristretto/$major.$minor/ristretto-$version.tar.xz"
      }
     }
    ]
   }
  ]
 }
}