{
 "app_id": "org.darktable.Darktable",
 "source_url": "https://raw.githubusercontent.com/flathub/org.darktable.Darktable/master/org.darktable.Darktable.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-run/gvfsd",
  "--filesystem=host",
  "--filesystem=xdg-run/gvfs",
  "--talk-name=org.gtk.vfs.*",
  "--talk-name=org.freedesktop.secrets",
  "--own-name=org.darktable.service",
  "--system-talk-name=org.freedesktop.ColorManager"
 ],
 "module_count": 24,
 "fetched_at": "2026-09-19T15:38:13.150958+00:00",
 "manifest": {
  "app-id": "org.darktable.Darktable",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "darktable",
  "rename-desktop-file": "org.darktable.darktable.desktop",
  "rename-appdata-file": "org.darktable.darktable.appdata.xml",
  "rename-icon": "darktable",
  "copy-icon": true,
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--filesystem=host",
   "--talk-name=org.freedesktop.secrets",
   "--metadata=X-DConf=migrate-path=/org/darktable/Darktable/",
   "--system-talk-name=org.freedesktop.ColorManager",
   "--own-name=org.darktable.service",
   "--talk-name=org.gtk.vfs.*",
   "--filesystem=xdg-run/gvfs",
   "--filesystem=xdg-run/gvfsd",
   "--device=all"
  ],
  "cleanup": [
   "/include",
   "/bin/metacopy",
   "/bin/pathtest",
   "/doc",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/lib/girepository-*",
   "/man",
   "/share/bash-completion",
   "/share/doc",
   "/share/gir-1.0",
   "/share/gtk-doc",
   "/share/man",
   "/share/vala",
   "*.a",
   "*.la"
  ],
  "modules": [
   "shared-modules/lua5.4/lua-5.4.json",
   {
    "name": "lensfun",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DBUILD_FOR_SSE=0",
     "-DBUILD_FOR_SSE2=0",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "build-options": {
     "arch": {
      "x86_64": {
       "config-opts": [
        "-DBUILD_FOR_SSE=1",
        "-DBUILD_FOR_SSE2=1"
       ]
      }
     }
    },
    "cleanup": [
     "/bin",
     "/lib/python3.*"
    ],
    "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"
    ],
    "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/72/14/60bf9ba4b5c6d001af3b93be17a442deea8b1ce0eab2911de839cb0dfd3f/lxml-5.0.2.tar.gz",
      "sha256": "6399703c40ba53e2c3b72fdb56cb908d2b83c08082ecf17de839b27e68d1e598"
     },
     {
      "type": "file",
      "path": "lensfun_convert_db.py"
     },
     {
      "type": "git",
      "dest": "lensfun-git",
      "url": "https://github.com/lensfun/lensfun.git",
      "commit": "25dd15aed13b099d6948fb75e3721e3af7a88606"
     }
    ]
   },
   {
    "name": "inih",
    "buildsystem": "meson",
    "config-opts": [
     "-Ddefault_library=shared",
     "-Ddistro_install=true",
     "-Dwith_INIReader=true"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/benhoyt/inih/archive/refs/tags/r62.tar.gz",
      "sha256": "9c15fa751bb8093d042dae1b9f125eb45198c32c6704cd5481ccde460d4f8151",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 11600,
       "stable-only": true,
       "url-template": "https://github.com/benhoyt/inih/archive/refs/tags/r$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "exiv2",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DEXIV2_BUILD_DOC:BOOL=OFF",
     "-DEXIV2_BUILD_EXIV2_COMMAND=ON",
     "-DEXIV2_ENABLE_BMFF=ON",
     "-DEXIV2_BUILD_SAMPLES=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Exiv2/exiv2/archive/refs/tags/v0.28.8.tar.gz",
      "sha256": "ea51b0609f58a9afa063b60daa1539948b62247721e154f4fff0ad3aec9f9756",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 769,
       "stable-only": true,
       "url-template": "https://github.com/Exiv2/exiv2/archive/refs/tags/v$version.tar.gz"
      }
     }
    ]
   },
   "shared-modules/intltool/intltool-0.51.json",
   {
    "name": "pugixml",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "cflags": "-fPIC",
     "cxxflags": "-fPIC"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/zeux/pugixml/releases/download/v1.16/pugixml-1.16.tar.gz",
      "sha256": "4cee1ca4aad395170f4c7a07824f3bdd41f28316c6e1e1090a1425b278ec0b4b",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 3728,
       "stable-only": true,
       "url-template": "https://github.com/zeux/pugixml/releases/download/v$version/pugixml-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "libgusb",
    "buildsystem": "meson",
    "config-opts": [
     "-Dtests=false",
     "-Ddocs=false",
     "-Dvapi=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/hughsie/libgusb/releases/download/0.4.9/libgusb-0.4.9.tar.xz",
      "sha256": "9df5ef301d6a4b361002aa52cce1165a87a89744055879bdbab31e7e86f1e846",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5505,
       "stable-only": true,
       "url-template": "https://github.com/hughsie/libgusb/releases/download/$version/libgusb-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "portmidi",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/PortMidi/portmidi/archive/refs/tags/v2.0.4.tar.gz",
      "sha256": "64893e823ae146cabd3ad7f9a9a9c5332746abe7847c557b99b2577afa8a607c"
     }
    ]
   },
   {
    "name": "colord",
    "buildsystem": "meson",
    "config-opts": [
     "-Ddaemon=false",
     "-Dsession_example=false",
     "-Dbash_completion=false",
     "-Dudev_rules=false",
     "-Dsystemd=false",
     "-Dargyllcms_sensor=false",
     "-Dsane=false",
     "-Dtests=false",
     "-Dinstalled_tests=false",
     "-Dman=false",
     "-Ddocs=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.freedesktop.org/software/colord/releases/colord-1.4.8.tar.xz",
      "sha256": "21500bd68975312a7f0f3ce6019d9f75f42aacaa75ca7115ec720b5445406896",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 10190,
       "stable-only": true,
       "url-template": "https://www.freedesktop.org/software/colord/releases/colord-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "colord-gtk",
    "buildsystem": "meson",
    "config-opts": [
     "-Dman=false",
     "-Dgtk4=false",
     "-Ddocs=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.freedesktop.org/software/colord/releases/colord-gtk-0.3.1.tar.xz",
      "sha256": "c176b889b75630a17f4e3d7ef24c09a3e12368e633496087459c8b53ac3a122d",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 331,
       "stable-only": true,
       "url-template": "https://www.freedesktop.org/software/colord/releases/colord-gtk-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "libgphoto2",
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/gphoto/libgphoto2/releases/download/v2.5.34/libgphoto2-2.5.34.tar.bz2",
      "sha256": "5df9e774eb4ab6087a193afff84dcafe9f666e3443fe29e73e6779f659ff7f28",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 12558,
       "stable-only": true,
       "url-template": "https://github.com/gphoto/libgphoto2/releases/download/v$version/libgphoto2-$version.tar.bz2"
      }
     }
    ]
   },
   "shared-modules/libsoup/libsoup-2.4.json",
   {
    "name": "osm-gps-map",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/nzjrs/osm-gps-map/releases/download/1.2.1/osm-gps-map-1.2.1.tar.gz",
      "sha256": "277d6835220a6a2954e09eb304a8cd6ff49b72542c97c4fc36e53e905f2a747c",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 6826,
       "stable-only": true,
       "url-template": "https://github.com/nzjrs/osm-gps-map/releases/download/$version/osm-gps-map-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "openexr",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v3.4.15.tar.gz",
      "sha256": "445ed5b0ea4d9cf98be3a4f219e419628b123b61dec65ccb743ab9b07fbebdaa",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 13289,
       "stable-only": true,
       "url-template": "https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v$version.tar.gz"
      }
     }
    ],
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DOPENEXR_BUILD_TOOLS=OFF",
     "-DBUILD_TESTING=OFF"
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig"
    ],
    "modules": [
     {
      "name": "imath",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/AcademySoftwareFoundation/Imath/archive/refs/tags/v3.2.3.tar.gz",
        "sha256": "e10c12b3f21f45bf08e09d4215d9c7691368d747beebd840de0b6fefed2df9f8",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 223366,
         "stable-only": true,
         "url-template": "https://github.com/AcademySoftwareFoundation/Imath/archive/refs/tags/v$version.tar.gz"
        }
       }
      ],
      "buildsystem": "cmake-ninja",
      "builddir": true,
      "config-opts": [
       "-DBUILD_TESTING=OFF"
      ],
      "cleanup": [
       "/include",
       "/lib/pkgconfig"
      ]
     },
     {
      "name": "libdeflate",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/ebiggers/libdeflate/archive/refs/tags/v1.25.zip",
        "sha256": "5ce391d1d09ff2f6b21af492fa72bd693e416a4a682ec48c04f91e5c0e16f383",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 242778,
         "stable-only": true,
         "url-template": "https://github.com/ebiggers/libdeflate/archive/refs/tags/v$version.zip"
        }
       }
      ],
      "buildsystem": "cmake-ninja",
      "builddir": true,
      "config-opts": [
       "-DLIBDEFLATE_BUILD_STATIC_LIB=OFF",
       "-DLIBDEFLATE_GZIP_SUPPORT=OFF",
       "-DLIBDEFLATE_BUILD_GZIP=OFF"
      ],
      "cleanup": [
       "/include",
       "/lib/pkgconfig"
      ]
     },
     {
      "name": "openjph",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/aous72/OpenJPH/archive/refs/tags/0.26.3.tar.gz",
        "sha256": "29de006da7f1e8cf0cd7c3ec424cf29103e465052c00b5a5f0ccb7e1f917bb3f",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 375199,
         "stable-only": true,
         "url-template": "https://github.com/aous72/OpenJPH/archive/refs/tags/$version.tar.gz"
        }
       }
      ],
      "buildsystem": "cmake-ninja",
      "builddir": true,
      "config-opts": [
       "-DOJPH_ENABLE_TIFF_SUPPORT=OFF",
       "-DOJPH_BUILD_EXECUTABLES=OFF"
      ],
      "cleanup": [
       "/include",
       "/lib/pkgconfig"
      ]
     }
    ]
   },
   {
    "name": "graphicsmagick",
    "builddir": true,
    "config-opts": [
     "--enable-shared"
    ],
    "cleanup": [
     "/bin/GraphicsMagick*config"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.48/GraphicsMagick-1.3.48.tar.xz",
      "sha256": "9218eb78179110f91371066ab75cb3b4dd034b9bb464b29ce9bab7a11979232b",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 1248,
       "stable-only": true,
       "url-template": "https://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/$version/GraphicsMagick-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "gmic",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_LIB_STATIC=OFF",
     "-DBUILD_CLI=OFF",
     "-DBUILD_MAN=OFF",
     "-DBUILD_BASH_COMPLETION=OFF"
    ],
    "cleanup": [
     "/lib/*.so"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gmic.eu/files/source/gmic_3.7.6.tar.gz",
      "sha256": "640bc1c72b1bb0eeb056771b1c57291403a4f3bffda372c4ea24ee2db8175a67",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 10217,
       "stable-only": true,
       "url-template": "https://gmic.eu/files/source/gmic_$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "perl",
    "no-autogen": true,
    "config-opts": [
     "-des",
     "-Duseshrplib"
    ],
    "build-options": {
     "cflags": "-fPIC",
     "ldflags": "-fpic"
    },
    "cleanup": [
     "/bin/corelist",
     "/bin/cpan",
     "/bin/enc*",
     "/bin/h2*",
     "/bin/instmodsh",
     "/bin/json_pp",
     "/bin/libnetcfg",
     "/bin/perlbug",
     "/bin/perldoc",
     "/bin/perlivp",
     "/bin/perlthanks",
     "/bin/piconv",
     "/bin/pl2pm",
     "/bin/pod*",
     "/bin/prove",
     "/bin/ptar*",
     "/bin/shasum",
     "/bin/splain",
     "/bin/streamzip",
     "/bin/xsubpp",
     "/bin/zipdetails",
     "/man",
     "*.h"
    ],
    "post-install": [
     "find ${FLATPAK_DEST}/lib/perl5/ -name \\*.so -exec chmod u+w {} \\;"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.cpan.org/src/5.0/perl-5.42.0.tar.gz",
      "sha256": "e093ef184d7f9a1b9797e2465296f55510adb6dab8842b0c3ed53329663096dc"
     },
     {
      "type": "script",
      "dest-filename": "configure",
      "commands": [
       "exec ./configure.gnu $@"
      ]
     }
    ]
   },
   {
    "name": "exiftool",
    "buildsystem": "simple",
    "build-commands": [
     "perl-libs/install.sh"
    ],
    "post-install": [
     "chmod -Rf u+w ${FLATPAK_DEST}/lib/perl5/site_perl"
    ],
    "sources": [
     "exiftool-sources.json"
    ],
    "cleanup": [
     "/man"
    ]
   },
   {
    "name": "git",
    "cleanup": [
     "/share/gitweb"
    ],
    "make-args": [
     "NO_TCLTK=YesPlease",
     "INSTALL_SYMLINKS=1"
    ],
    "make-install-args": [
     "NO_TCLTK=YesPlease",
     "INSTALL_SYMLINKS=1"
    ],
    "post-install": [
     "find . -type f -name perllocal.pod -delete"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.54.0.tar.xz",
      "sha256": "f689162364c10de79ef89aa8dbf48731eb057e34edbbd20aca510ce0154681a3",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5350,
       "stable-only": true,
       "versions": {
        "<": "2.55"
       },
       "url-template": "https://mirrors.edge.kernel.org/pub/software/scm/git/git-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "potrace",
    "cleanup": [
     "/bin"
    ],
    "config-opts": [
     "--with-libpotrace"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/project/potrace/1.16/potrace-1.16.tar.gz",
      "sha256": "be8248a17dedd6ccbaab2fcc45835bb0502d062e40fbded3bc56028ce5eb7acc"
     }
    ]
   },
   {
    "name": "darktable",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DBINARY_PACKAGE_BUILD=1",
     "-DTESTBUILD_OPENCL_PROGRAMS=OFF"
    ],
    "builddir": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/darktable-org/darktable/releases/download/release-5.6.1/darktable-5.6.1.tar.xz",
      "sha256": "e8b84ac98b0b689a244e4036c4b56394c1d58ce2d9abc05e0a060ef9f756dc36",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/darktable-org/darktable/releases/latest",
       "version-query": ".tag_name | sub(\"^release-\"; \"\")",
       "url-query": ".assets[] | select(.name==\"darktable-\" + $version + \".tar.xz\") | .browser_download_url"
      }
     }
    ]
   }
  ]
 }
}