{
 "app_id": "org.gnome.Evolution",
 "source_url": "https://raw.githubusercontent.com/flathub/org.gnome.Evolution/master/org.gnome.Evolution.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--socket=pcsc",
  "--device=dri",
  "--filesystem=~/.config/gnupg",
  "--filesystem=xdg-run/gvfsd",
  "--filesystem=/run/.heim_org.h5l.kcm-socket",
  "--filesystem=~/.gnupg",
  "--filesystem=~/.pki",
  "--filesystem=~/.config/pki",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.gnome.keyring.SystemPrompter",
  "--talk-name=org.gnome.OnlineAccounts",
  "--talk-name=org.freedesktop.secrets"
 ],
 "module_count": 19,
 "fetched_at": "2026-09-17T16:14:50.895560+00:00",
 "manifest": {
  "app-id": "org.gnome.Evolution",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "evolution",
  "rename-icon": "evolution",
  "copy-icon": true,
  "build-options": {
   "cflags": "-O2 -g -Wno-deprecated-declarations",
   "cxxflags": "-O2 -g -Wno-deprecated-declarations",
   "env": {
    "ACLOCAL_PATH": "/usr/share/gettext/m4/"
   }
  },
  "cleanup": [
   "*.la",
   "*.a"
  ],
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--device=dri",
   "--socket=pcsc",
   "--talk-name=org.gnome.OnlineAccounts",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.freedesktop.secrets",
   "--talk-name=org.gnome.keyring.SystemPrompter",
   "--filesystem=/run/.heim_org.h5l.kcm-socket",
   "--metadata=X-DConf=migrate-path=/org/gnome/evolution/",
   "--filesystem=~/.gnupg:rw",
   "--filesystem=~/.pki:rw",
   "--filesystem=~/.config/gnupg:rw",
   "--filesystem=~/.config/pki:rw",
   "--filesystem=xdg-run/gvfsd:rw"
  ],
  "add-extensions": {
   "org.gnome.Evolution.Extension": {
    "directory": "evolution/extensions",
    "add-ld-path": "lib",
    "merge-dirs": "lib;share",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": true
   }
  },
  "modules": [
   "shared-modules/libcanberra/libcanberra.json",
   {
    "name": "libical",
    "cleanup": [
     "/lib/cmake"
    ],
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_SHARED_LIBS:BOOL=ON",
     "-DGOBJECT_INTROSPECTION:BOOL=OFF",
     "-DCMAKE_INSTALL_LIBDIR:PATH=/app/lib",
     "-DICAL_BUILD_DOCS:BOOL=OFF",
     "-DICAL_GLIB_VAPI:BOOL=OFF",
     "-DICAL_GLIB:BOOL=ON"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libical/libical/releases/download/v3.0.20/libical-3.0.20.tar.gz",
      "sha256": "e73de92f5a6ce84c1b00306446b290a2b08cdf0a80988eca0a2c9d5c3510b4c2"
     }
    ]
   },
   {
    "name": "gspell",
    "buildsystem": "meson",
    "config-opts": [
     "-Dgspell_app=false",
     "-Dvapi=false",
     "-Dgtk_doc=false",
     "-Dgobject_introspection=false",
     "-Dtests=false",
     "-Dinstall_tests=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/gspell/1.14/gspell-1.14.0.tar.xz",
      "sha256": "64ea1d8e9edc1c25b45a920e80daf67559d1866ffcd7f8432fecfea6d0fe8897"
     }
    ]
   },
   {
    "name": "liboauth",
    "config-opts": [
     "--enable-nss"
    ],
    "cleanup": [
     "/share/man"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/project/liboauth/liboauth-1.0.3.tar.gz",
      "sha256": "0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f"
     }
    ]
   },
   {
    "name": "librest",
    "buildsystem": "meson",
    "config-opts": [
     "-Dexamples=false",
     "-Dgtk_doc=false",
     "-Dtests=false"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/rest/0.9/rest-0.9.1.tar.xz",
      "sha256": "9266a5c10ece383e193dfb7ffb07b509cc1f51521ab8dad76af96ed14212c2e3"
     }
    ]
   },
   {
    "name": "gnome-online-accounts",
    "buildsystem": "meson",
    "config-opts": [
     "-Dvapi=false",
     "-Dgoabackend=false",
     "-Dintrospection=false",
     "-Dkerberos=false"
    ],
    "cleanup": [
     "/bin",
     "/share/GConf"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/gnome-online-accounts/3.58/gnome-online-accounts-3.58.1.tar.xz",
      "sha256": "9ec1900cc51409c2067c07c828c10be06fe3bf68d2999bb72d7d5ed325ed9bbc"
     }
    ]
   },
   {
    "name": "geocode-glib",
    "buildsystem": "meson",
    "config-opts": [
     "-Denable-gtk-doc=false",
     "-Denable-introspection=false",
     "-Denable-installed-tests=false",
     "-Dsoup2=false"
    ],
    "cleanup": [
     "/share/gtk-doc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/geocode-glib/3.26/geocode-glib-3.26.4.tar.xz",
      "sha256": "2d9a6826d158470449a173871221596da0f83ebdcff98b90c7049089056a37aa"
     }
    ]
   },
   {
    "name": "gweather-locations",
    "buildsystem": "meson",
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/gweather-locations/2026/gweather-locations-2026.2.tar.xz",
      "sha256": "e7570a3661e0a752a06387b2032585cf588fc56770b1f9f39f1a55d17b2835fe"
     }
    ]
   },
   {
    "name": "libgweather4",
    "buildsystem": "meson",
    "config-opts": [
     "-Denable_vala=false",
     "-Dgtk_doc=false",
     "-Dintrospection=false",
     "-Dtests=false"
    ],
    "cleanup": [
     "/lib/girepository-1.0",
     "/share/gtk-doc",
     "/share/gir-1.0"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/libgweather/4.6/libgweather-4.6.0.tar.xz",
      "sha256": "7f5d0e8c9685ef2ff46c2f3a57cae48d7bf3540b2d83921f889ef28e6a876788"
     }
    ]
   },
   {
    "name": "openldap",
    "rm-configure": true,
    "cleanup": [
     "/bin",
     "/share/man"
    ],
    "config-opts": [
     "--disable-backends",
     "--disable-overlays",
     "--disable-slapd",
     "--disable-debug",
     "--enable-dynamic",
     "--without-threads",
     "--with-tls=gnutls"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.6.10.tgz",
      "sha512": "18129ad9a385457941e3203de5f130fe2571701abf24592c5beffb01361aae3182c196b2cd48ffeecb792b9b0e5f82c8d92445a7ec63819084757bdedba63b20"
     },
     {
      "type": "script",
      "dest-filename": "autogen.sh",
      "commands": [
       "AUTOMAKE=\"/bin/true\" autoreconf -vfi"
      ]
     }
    ]
   },
   "shared-modules/intltool/intltool-0.51.json",
   {
    "name": "evolution-data-server",
    "buildsystem": "cmake-ninja",
    "cleanup": [
     "/share/GConf"
    ],
    "config-opts": [
     "-DDBUS_SERVICES_PREFIX=org.gnome.Evolution",
     "-DEXTENSIONS_DIR=/app/evolution/extensions",
     "-DENABLE_FILE_LOCKING=fcntl",
     "-DENABLE_DOT_LOCKING=OFF",
     "-DENABLE_OAUTH2=ON",
     "-DENABLE_GTK=ON",
     "-DENABLE_GTK4=OFF",
     "-DENABLE_UOA=OFF",
     "-DENABLE_GOA=ON",
     "-DENABLE_EXAMPLES=OFF",
     "-DENABLE_INTROSPECTION=OFF",
     "-DENABLE_VALA_BINDINGS=OFF",
     "-DENABLE_INSTALLED_TESTS=OFF",
     "-DENABLE_GTK_DOC=OFF",
     "-DWITH_LIBDB=OFF",
     "-DWITH_PRIVATE_DOCS=OFF",
     "-DWITH_PHONENUMBER=OFF",
     "-DWITH_SYSTEMDUSERUNITDIR=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/evolution-data-server/3.60/evolution-data-server-3.60.2.tar.xz",
      "sha256": "2084dbdac396371b365d504c1ff45866ba8dca2f1252e5da1d3d9c33abdc1286"
     }
    ],
    "post-install": [
     "install -d /app/evolution/extensions",
     "cp NEWS /app/share/NEWS.eds"
    ]
   },
   {
    "name": "bogofilter",
    "buildsystem": "simple",
    "build-commands": [
     "cd ./bogofilter/ && echo \"# Skip for Flatpak build\" > doc/Makefile.am && autoreconf -fi && ./configure --prefix=/app --disable-rpath --with-database=sqlite3 && make && make install"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.com/bogofilter/bogofilter.git",
      "commit": "4ac3f83c7c0ce2eaa98331a72ecc03bd4422d091"
     }
    ]
   },
   {
    "name": "cmark",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "cleanup": [
     "/bin",
     "/lib/cmake",
     "/share"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/commonmark/cmark/archive/refs/tags/0.31.1.tar.gz",
      "sha256": "3da93db5469c30588cfeb283d9d62edfc6ded9eb0edc10a4f5bbfb7d722ea802"
     }
    ]
   },
   {
    "name": "evolution",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "cflags": "-DTEMP_HOME=1"
    },
    "config-opts": [
     "-DVERSION_SUBSTRING= (by Flathub.org)",
     "-DENABLE_AUTOAR=OFF",
     "-DENABLE_GTK4=OFF",
     "-DENABLE_CONTACT_MAPS=OFF",
     "-DENABLE_GNOME_DESKTOP=OFF",
     "-DENABLE_GTK_DOC=OFF",
     "-DENABLE_INSTALLED_TESTS=OFF",
     "-DENABLE_PST_IMPORT=OFF",
     "-DENABLE_TEXT_HIGHLIGHT=OFF",
     "-DENABLE_YTNEF=OFF",
     "-DWITH_BOGOFILTER=/app/bin/bogofilter",
     "-DWITH_GLADE_CATALOG=OFF",
     "-DWITH_HELP=ON",
     "-DWITH_WMCLASS_OVERRIDE=evolution.bin"
    ],
    "cleanup": [
     "/etc/xdg",
     "/share/GConf"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/evolution/3.60/evolution-3.60.2.tar.xz",
      "sha256": "218a49fa5068155dbdbd35a30d10a2f237c72465fb1d0e0aa78889f039c2ed8f"
     },
     {
      "type": "shell",
      "commands": [
       "cp config.h.in config.h.in.orig",
       "cat config.h.in.orig | sed -e \"s|\\@VERSION_SUBSTRING\\@| \\(by Flathub.org\\)|\" >config.h.in",
       "cp data/org.gnome.Evolution.metainfo.xml.in.in data/org.gnome.Evolution.metainfo.xml.in.in.orig",
       "cat data/org.gnome.Evolution.metainfo.xml.in.in.orig | sed -e \"s|\\@APPDATA_RELEASES\\@|APPDATA_RELEASES|\" >data/org.gnome.Evolution.metainfo.xml.in.in"
      ]
     }
    ],
    "post-install": [
     "cp NEWS /app/share/NEWS.evo",
     "cp news-to-appdata.c /app/share/",
     "mv /app/share/metainfo/org.gnome.Evolution.metainfo.xml /app/share/"
    ]
   },
   {
    "name": "flatpak-evolution-wrapper",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "script",
      "commands": [
       "if [ \"$1\" = \"--quit\" -o \"$1\" = \"--force-shutdown\" ]; then",
       "   /app/bin/evolution.bin \"$@\"",
       "else",
       "   export BOGOFILTER_DIR=\"${XDG_DATA_HOME}/bogofilter/\"",
       "   export GIO_USE_NETWORK_MONITOR=base",
       "   export WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1",
       "   gsettings reset org.gnome.evolution-data-server network-monitor-gio-name",
       "",
       "   LINES=$(gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep @SOURCES_SERVICE@ | wc -l)",
       "   if [ \"${LINES}\" = \"0\" ]; then",
       "      /app/libexec/evolution-source-registry &",
       "      gdbus wait --session --timeout=1@TIMEOUTMULT@ @SOURCES_SERVICE@",
       "   fi",
       "",
       "   LINES=$(gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep @ADDRESSBOOK_SERVICE@ | wc -l)",
       "   if [ \"${LINES}\" = \"0\" ]; then",
       "      /app/libexec/evolution-addressbook-factory -r &",
       "      gdbus wait --session --timeout=1@TIMEOUTMULT@ @ADDRESSBOOK_SERVICE@",
       "   fi",
       "",
       "   LINES=$(gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep @CALENDAR_SERVICE@ | wc -l)",
       "   if [ \"${LINES}\" = \"0\" ]; then",
       "      /app/libexec/evolution-calendar-factory -r &",
       "      gdbus wait --session --timeout=1@TIMEOUTMULT@ @CALENDAR_SERVICE@",
       "   fi",
       "",
       "   /app/bin/evolution.bin \"$@\"",
       "",
       "fi"
      ],
      "dest-filename": "flatpak-evolution-wrapper.sh.in"
     },
     {
      "type": "script",
      "commands": [
       "# see https://gitlab.gnome.org/GNOME/glib/issues/1737",
       "# previous versions used milliseconds instead of seconds as the timeout argument",
       "(`pkg-config --atleast-version 2.60.1 gio-2.0` || `pkg-config --atleast-version 2.61.0 gio-2.0`) && TIMEOUTMULT= || TIMEOUTMULT=000",
       "",
       "sed -e \"s|\\@SOURCES_SERVICE\\@|$(pkg-config --variable=sourcesdbusservicename evolution-data-server-1.2)|\" \\",
       "    -e \"s|\\@ADDRESSBOOK_SERVICE\\@|$(pkg-config --variable=addressbookdbusservicename evolution-data-server-1.2)|\" \\",
       "    -e \"s|\\@CALENDAR_SERVICE\\@|$(pkg-config --variable=calendardbusservicename evolution-data-server-1.2)|\" \\",
       "    -e \"s|\\@TIMEOUTMULT\\@|${TIMEOUTMULT}|\""
      ],
      "dest-filename": "flatpak-evolution-fix-service-names.sh"
     }
    ],
    "build-commands": [
     "./flatpak-evolution-fix-service-names.sh <flatpak-evolution-wrapper.sh.in >flatpak-evolution-wrapper.sh",
     "chmod a+x flatpak-evolution-wrapper.sh",
     "mv /app/bin/evolution /app/bin/evolution.bin",
     "cp flatpak-evolution-wrapper.sh /app/bin/evolution"
    ]
   },
   {
    "name": "libmspack",
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.cabextract.org.uk/libmspack/libmspack-0.11alpha.tar.gz",
      "sha256": "70dd1fb2f0aecc36791b71a1e1840e62173079eadaa081192d1c323a0eeea21b"
     }
    ]
   },
   {
    "name": "evolution-ews",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://download.gnome.org/sources/evolution-ews/3.60/evolution-ews-3.60.2.tar.xz",
      "sha256": "940205818f6988411457ddf5804d210f3515c26e33415debd8fbb2731b1daf2b"
     }
    ],
    "post-install": [
     "cp NEWS /app/share/NEWS.ews"
    ]
   },
   {
    "name": "news-to-appdata",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "script",
      "commands": [
       "gcc /app/share/news-to-appdata.c -g -O0 -o news-to-appdata `pkg-config --cflags --libs glib-2.0`",
       "TYPE=${1}",
       "VER=$(pkg-config --modversion evolution-shell-3.0)",
       "if [ \"${VER}\" = \"\" ]; then",
       "   echo \"Failed to get evolution version\" 1>&2",
       "   exit 1",
       "fi",
       "VER=${VER%.*}",
       "APPDATA_RELEASES=`./news-to-appdata \"\" ${TYPE} ${VER} /app/share/NEWS.evo ${VER} /app/share/NEWS.eds ${VER} /app/share/NEWS.ews`",
       "APPDATA=`cat /app/share/org.gnome.Evolution.metainfo.xml`",
       "if [ \"${APPDATA_RELEASES}\" = \"\" ]; then",
       "    APPDATA_RELEASES=\"<release version=\\\"$(pkg-config --modversion evolution-shell-3.0)\\\" date=\\\"$(date +%Y-%m-%d)\\\" type=\\\"${TYPE}\\\"/>\"",
       "fi",
       "echo \"${APPDATA%APPDATA_RELEASES*}${APPDATA_RELEASES}${APPDATA#*APPDATA_RELEASES}\">/app/share/metainfo/org.gnome.Evolution.metainfo.xml",
       "rm /app/share/NEWS.eds",
       "rm /app/share/NEWS.evo",
       "rm /app/share/NEWS.ews",
       "rm /app/share/news-to-appdata.c",
       "rm /app/share/org.gnome.Evolution.metainfo.xml"
      ],
      "dest-filename": "update-appdata.sh"
     }
    ],
    "build-commands": [
     "./update-appdata.sh stable"
    ]
   }
  ]
 }
}