{
 "app_id": "com.rawtherapee.RawTherapee",
 "source_url": "https://raw.githubusercontent.com/flathub/com.rawtherapee.RawTherapee/master/com.rawtherapee.RawTherapee.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=home",
  "--filesystem=/tmp",
  "--filesystem=xdg-run/gvfsd",
  "--filesystem=xdg-run/gvfs:ro",
  "--talk-name=org.freedesktop.Flatpak",
  "--talk-name=org.gtk.vfs.*"
 ],
 "module_count": 13,
 "fetched_at": "2026-09-17T16:08:38.734260+00:00",
 "manifest": {
  "app-id": "com.rawtherapee.RawTherapee",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "rawtherapee",
  "rename-desktop-file": "rawtherapee.desktop",
  "rename-icon": "rawtherapee",
  "copy-icon": true,
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--filesystem=home",
   "--filesystem=/tmp",
   "--filesystem=xdg-run/gvfs:ro",
   "--filesystem=xdg-run/gvfsd",
   "--talk-name=org.gtk.vfs.*",
   "--talk-name=org.freedesktop.Flatpak",
   "--device=dri"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/lib/*/include",
   "/lib/*/proc",
   "/share/gdm",
   "/share/gnome",
   "/share/gtk-doc",
   "/share/info",
   "/share/man",
   "/share/vala",
   "*.a",
   "*.la"
  ],
  "modules": [
   {
    "name": "mm-common",
    "buildsystem": "meson",
    "config-opts": [
     "--buildtype=debugoptimized",
     "--wrap-mode=nodownload",
     "-Duse-network=false"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnome.org/pub/GNOME/sources/mm-common/1.0/mm-common-1.0.0.tar.xz",
      "sha256": "b97d9b041e5952486cab620b44ab09f6013a478f43b6699ae899b8a4da189cd4"
     }
    ]
   },
   {
    "name": "libsigc++",
    "rm-configure": true,
    "config-opts": [
     "--disable-static",
     "--disable-documentation",
     "--enable-maintainer-mode"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.10/libsigc++-2.10.2.tar.xz",
      "sha256": "b1ca0253379596f9c19f070c83d362b12dfd39c0a3ea1dd813e8e21c1a097a98"
     },
     {
      "type": "shell",
      "commands": [
       "cp -p /usr/share/automake-*/config.{sub,guess} \"build/\";"
      ]
     }
    ]
   },
   {
    "name": "cairomm",
    "rm-configure": true,
    "config-opts": [
     "--disable-static",
     "--disable-documentation",
     "--enable-maintainer-mode"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnome.org/pub/GNOME/sources/cairomm/1.12/cairomm-1.12.0.tar.xz",
      "sha256": "a54ada8394a86182525c0762e6f50db6b9212a2109280d13ec6a0b29bfd1afe6"
     },
     {
      "type": "shell",
      "commands": [
       "cp -p /usr/share/automake-*/config.{sub,guess} \"build/\";"
      ]
     }
    ]
   },
   {
    "name": "glibmm",
    "rm-configure": true,
    "config-opts": [
     "--disable-static",
     "--disable-documentation",
     "--enable-maintainer-mode"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnome.org/pub/GNOME/sources/glibmm/2.62/glibmm-2.62.0.tar.xz",
      "sha256": "36659f13cc73282392d1305858f3bbca46fbd1ce2f078cc9db8b9f79b2e93cfe"
     },
     {
      "type": "shell",
      "commands": [
       "cp -p /usr/share/automake-*/config.{sub,guess} \"build/\";"
      ]
     }
    ]
   },
   {
    "name": "pangomm",
    "buildsystem": "meson",
    "config-opts": [
     "-Dbuildtype=release",
     "-Dbuild-documentation=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/pangomm/2.46/pangomm-2.46.2.tar.xz",
      "sha256": "57442ab4dc043877bfe3839915731ab2d693fc6634a71614422fb530c9eaa6f4"
     }
    ]
   },
   {
    "name": "atkmm",
    "rm-configure": true,
    "config-opts": [
     "--disable-static",
     "--disable-documentation",
     "--enable-maintainer-mode"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnome.org/pub/GNOME/sources/atkmm/2.28/atkmm-2.28.0.tar.xz",
      "sha256": "4c4cfc917fd42d3879ce997b463428d6982affa0fb660cafcc0bc2d9afcedd3a"
     },
     {
      "type": "shell",
      "commands": [
       "cp -p /usr/share/automake-*/config.{sub,guess} \"build/\";"
      ]
     }
    ]
   },
   {
    "name": "gtkmm",
    "buildsystem": "meson",
    "config-opts": [
     "-Dmaintainer-mode=false",
     "-Dbuild-demos=false",
     "-Dbuild-tests=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/gtkmm/3.24/gtkmm-3.24.7.tar.xz",
      "sha256": "1d7a35af9c5ceccacb244ee3c2deb9b245720d8510ac5c7e6f4b6f9947e6789c"
     }
    ]
   },
   {
    "name": "lensfun",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "post-install": [
     "pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} lxml --ignore-installed --no-build-isolation",
     "python3 lensfun_convert_db.py $PWD lensfun-git/data/db",
     "rm -rf /app/share/lensfun/version_1/*",
     "tar xvf db/version_1.tar -C /app/share/lensfun/version_1"
    ],
    "cleanup": [
     "/bin",
     "/lib/python3.*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/lensfun/lensfun/archive/refs/tags/v0.3.4.tar.gz",
      "sha256": "dafb39c08ef24a0e2abd00d05d7341b1bf1f0c38bfcd5a4c69cf5f0ecb6db112"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/23/ad/28ecd7cb894d172f3c9c80a075eeeb2017ac62e3632cee05a5f9493547eb/lxml-6.1.3.tar.gz",
      "sha256": "45222d94ddd511536f3b2f7d9deae3b2339b4ce0f075f1ca25703b07cad9dd21"
     },
     {
      "type": "file",
      "path": "lensfun_convert_db.py"
     },
     {
      "type": "git",
      "dest": "lensfun-git",
      "url": "https://github.com/lensfun/lensfun.git",
      "commit": "698a39eea69be00f4f25b6da6c1ad34b1f162b50"
     }
    ]
   },
   {
    "name": "libiptcdata",
    "config-opts": [
     "--disable-static",
     "--disable-gtk-doc",
     "--enable-maintainer-mode"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ianw/libiptcdata/archive/release_1_0_5.tar.gz",
      "sha256": "78a5c49b646cb610c84bc4dfc730caad9a06e9b4e295600908782f4abb25316e"
     },
     {
      "type": "patch",
      "path": "patches/libiptcdata-no-gtkdoc.patch"
     },
     {
      "type": "shell",
      "commands": [
       "cp -p /usr/share/automake-*/config.{sub,guess} .;"
      ]
     }
    ]
   },
   "shared-modules/linux-audio/fftw3f.json",
   "shared-modules/libcanberra/libcanberra.json",
   {
    "name": "exiv2",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DEXIV2_BUILD_DOC:BOOL=OFF",
     "-DEXIV2_BUILD_EXIV2_COMMAND=OFF",
     "-DEXIV2_ENABLE_BMFF=ON",
     "-DEXIV2_BUILD_SAMPLES=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Exiv2/exiv2/releases/download/v0.27.7/exiv2-0.27.7-Source.tar.gz",
      "sha256": "70629dc27e3d4dd5c3fa91afbea93166d338b1de284e6a4c44bbf9dcfe7bbc6d"
     }
    ]
   },
   {
    "name": "RawTherapee",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "cflags": "-O3",
     "cxxflags": "-O3"
    },
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DCACHE_NAME_SUFFIX=\"\"",
     "-DWITH_SYSTEM_FMT=ON"
    ],
    "post-install": [
     "install -Dm 0755 \"../gimp\"{,-flatpak,-host} -t \"${FLATPAK_DEST}/bin/\";"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/RawTherapee/RawTherapee/releases/download/5.13/rawtherapee-5.13.tar.xz",
      "sha256": "23bdff4b1817e1274c11a94b11d21cac59e9c1b1d209795d3194710ee73e77bf"
     },
     {
      "type": "patch",
      "paths": [
       "patches/RawTherapee-appdata.patch",
       "patches/RawTherapee-mime.patch"
      ]
     },
     {
      "type": "script",
      "commands": [
       "flatpak-spawn --host \"gimp\" \"${@}\";"
      ],
      "dest-filename": "gimp-host"
     },
     {
      "type": "script",
      "commands": [
       "flatpak-spawn --host flatpak run \"org.gimp.GIMP\" \"${@}\";"
      ],
      "dest-filename": "gimp-flatpak"
     },
     {
      "type": "script",
      "commands": [
       "if flatpak-spawn --host flatpak info \"org.gimp.GIMP\" >/dev/null 2>/dev/null; then\n  gimp-flatpak \"${@}\";\nelse\n  gimp-host \"${@}\";\nfi;\n"
      ],
      "dest-filename": "gimp"
     }
    ]
   }
  ]
 }
}