{
  "app-id": "org.gnome.Geary",
  "runtime": "org.gnome.Platform",
  "runtime-version": "3.20",
  "sdk": "org.gnome.Sdk",
  "command": "geary",
  "branch": "stable", 
  "rename-desktop-file": "geary.desktop",
  "rename-appdata-file": "geary.appdata.xml",
  "rename-icon": "geary",
  "copy-icon": true,
  "separate-locales": false,
  "finish-args": [ 
        /* X11 + XShm access */
        "--share=ipc", "--socket=x11",

        /* Wayland access */
     	"--socket=wayland", 
        
	/* Bus access */
     	"--socket=session-bus", 

	/* Pulseaudio */
     	"--socket=pulseaudio", 

        /* Read-write access to home directory */
       	"--filesystem=host:ro",
       	"--filesystem=home:rw",

        /* Needs to talk to the network: */
     	"--share=network",

        /* Notification access */
        "--talk-name=org.gtk.Notifications", "--talk-name=org.freedesktop.Notifications",

        /* Secrets access */
	"--talk-name=org.freedesktop.secrets",

        /* Needed for dconf to work */
        "--filesystem=xdg-run/dconf", "--filesystem=~/.config/dconf:ro",
        "--talk-name=ca.desrt.dconf", "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
  ],
  "cleanup": ["/include", "/lib/pkgconfig",
                "/share/pkgconfig", "/share/aclocal",
                "/man", "/share/man", "/share/gtk-doc",
                "/share/vala",
                "*.la", "*.a"],
  "modules": [
        {
            "name": "gnome-doc-utils",
            "sources": [
                {
                    "type": "archive",
                    "url": "https://download.gnome.org/sources/gnome-doc-utils/0.20/gnome-doc-utils-0.20.10.tar.xz",
		    "sha256": "cb0639ffa9550b6ddf3b62f3b1add92fb92ab4690d351f2353cffe668be8c4a6"
                }
            ]
        },
        {
            "name": "webkitgtk",
            "config-opts": [ "--with-gtk=3.0", "--enable-jit", "--disable-webkit2", "--enable-introspection" ],
            "sources": [
                {
                    "type": "archive",
                    "url": "http://webkitgtk.org/releases/webkitgtk-2.4.11.tar.xz",
		    "sha256": "588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7"
                }
            ]
        },
        {
            "name": "libgee",
  	    "build-options" : {
                "env": {
                    "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR": "/app/share/gir-1.0",
                    "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR": "/app/lib/girepository-1.0"
                }
            },
            "sources": [
                {
                    "type": "archive",
                    "url": "https://download.gnome.org/sources/libgee/0.18/libgee-0.18.0.tar.xz",
		    "sha256": "4ad99ef937d071b4883c061df40bfe233f7649d50c354cf81235f180b4244399"
                }
            ]
        },
        {
            "name": "gmime",
            "sources": [
                {
                    "type": "archive",
                    "url": "https://download.gnome.org/sources/gmime/2.6/gmime-2.6.20.tar.xz",
		    "sha256": "e0a170fb264c2ae4cecd852f4e7aaddb8d58e8f3f0b569ce2d2a4704f55bdf65"
                }
            ]
        },
    {
      "name": "geary",
      "build-options" : {
          "env": {
              "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR": "/app/share/gir-1.0",
              "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR": "/app/lib/girepository-1.0"
           }
      },
      "sources": [
        {
          "type": "archive",
          "url": "https://download.gnome.org/sources/geary/0.11/geary-0.11.1.tar.xz",
          "sha256": "6efc5e1a944ca1c1a991d50d558fbe46ed58763b3f8b7bcd451b15078a9b2eb2"
        }
      ]
    }
  ]
}
