{
 "app_id": "org.gnu.emacs",
 "source_url": "https://raw.githubusercontent.com/flathub/org.gnu.emacs/master/org.gnu.emacs.json",
 "runtime": "org.freedesktop.Sdk",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--filesystem=/var/tmp",
  "--filesystem=/tmp",
  "--filesystem=host",
  "--talk-name=org.freedesktop.Flatpak"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:15:06.699744+00:00",
 "manifest": {
  "app-id": "org.gnu.emacs",
  "runtime": "org.freedesktop.Sdk",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "emacs-wrapper",
  "rename-icon": "emacs",
  "rename-appdata-file": "emacs.metainfo.xml",
  "rename-desktop-file": "emacs.desktop",
  "finish-args": [
   "--share=network",
   "--share=ipc",
   "--socket=pulseaudio",
   "--socket=x11",
   "--filesystem=host",
   "--filesystem=/tmp",
   "--filesystem=/var/tmp",
   "--talk-name=org.freedesktop.Flatpak"
  ],
  "modules": [
   {
    "name": "tree-sitter",
    "buildsystem": "simple",
    "build-commands": [
     "PREFIX=\"/app\" make",
     "PREFIX=\"/app\" make install"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/tree-sitter/tree-sitter.git",
      "tag": "v0.26.13",
      "commit": "d97971e24500218865c05ed1febdee2acf41bae1"
     }
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig",
     "/lib/*.a"
    ]
   },
   {
    "name": "emacs",
    "buildsystem": "autotools",
    "config-opts": [
     "--with-gnutls",
     "--with-tree-sitter"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/gnu/emacs/emacs-31.1.tar.xz",
      "sha256": "1da5790d9580c81932b5bf700633114468da7b3412d69faa767daebf974f4586"
     },
     {
      "type": "patch",
      "path": "emacs.desktop-exec-wrapper.patch"
     },
     {
      "type": "patch",
      "path": "metainfo-releases.patch"
     },
     {
      "type": "patch",
      "path": "metainfo-launchable.patch"
     },
     {
      "type": "patch",
      "path": "metainfo-supports-internet-always.patch"
     }
    ],
    "cleanup": [
     "/include",
     "/lib/systemd",
     "/share/icons/hicolor/scalable/apps/emacs.ico",
     "/share/icons/hicolor/scalable/mimetypes/emacs-document.svg",
     "/share/icons/hicolor/scalable/mimetypes/emacs-document23.svg"
    ]
   },
   {
    "name": "wrapper",
    "buildsystem": "meson",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/flathub-infra/ide-flatpak-wrapper.git",
      "commit": "2881abaf9efc6e14923b8a0bb085275aaf2fbddf"
     },
     {
      "type": "file",
      "path": "emacs-first-run.txt"
     }
    ],
    "config-opts": [
     "-Deditor_binary=/app/bin/emacs",
     "-Dprogram_name=emacs-wrapper",
     "-Deditor_title=GNU Emacs",
     "-Dflagfile_prefix=flatpak-emacs",
     "-Dfirst_run_template=emacs-first-run.txt"
    ]
   }
  ]
 }
}