{
 "app_id": "org.godotengine.Godot",
 "source_url": "https://raw.githubusercontent.com/flathub/org.godotengine.Godot/master/org.godotengine.Godot.yaml",
 "runtime": "org.freedesktop.Sdk",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all",
  "--filesystem=xdg-run/speech-dispatcher",
  "--filesystem=host",
  "--talk-name=org.freedesktop.Flatpak",
  "--talk-name=org.a11y.Bus"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-17T16:15:11.081461+00:00",
 "manifest": {
  "app-id": "org.godotengine.Godot",
  "runtime": "org.freedesktop.Sdk",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "add-extensions": {
   "org.freedesktop.Sdk.Extension.openjdk17": {
    "directory": "jdk",
    "version": "25.08",
    "no-autodownload": false,
    "autodelete": false
   }
  },
  "command": "godot",
  "build-options": {
   "arch": {
    "x86_64": {
     "env": {
      "SCONS_FLAGS_EXTRA": "use_lto=yes"
     }
    }
   },
   "env": {
    "BUILD_NAME": "flathub",
    "SCONS_FLAGS": "platform=linuxbsd CCFLAGS=-I/app/include progress=no builtin_freetype=no builtin_libogg=no builtin_libpng=no builtin_libtheora=no builtin_libvorbis=no builtin_libwebp=no builtin_openssl=no builtin_libvpx=no builtin_zlib=no builtin_graphite=no builtin_sdl=no udev=no accesskit_sdk_path=/app/accesskit-c\n"
   }
  },
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--share=network",
   "--socket=pulseaudio",
   "--filesystem=host",
   "--filesystem=xdg-run/speech-dispatcher",
   "--device=all",
   "--talk-name=org.freedesktop.Flatpak",
   "--talk-name=org.a11y.Bus"
  ],
  "modules": [
   {
    "name": "jdk",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/jdk"
    ]
   },
   {
    "name": "libspeechd",
    "config-opts": [
     "--disable-static",
     "--with-ibmtts=no",
     "--with-kali=no",
     "--with-baratinoo=no",
     "--with-voxin=no",
     "--without-flite",
     "--disable-python"
    ],
    "no-make-install": true,
    "post-install": [
     "cd ./src/api/c && make install"
    ],
    "cleanup": [
     "*.la",
     "*.a",
     "/include"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/brailcom/speechd/releases/download/0.12.1/speech-dispatcher-0.12.1.tar.gz",
      "sha512": "f386bb25d80e85153db4907c5adece519a86084676a39f958a4f56e53bb957cb9b1232c4e648e73ef8dc5d1ab8e0cd64a5e0d151775fdd8f3b175f47f4864422",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 13411,
       "stable-only": true,
       "url-template": "https://github.com/brailcom/speechd/releases/download/$version/speech-dispatcher-$version.tar.gz"
      }
     }
    ],
    "modules": [
     {
      "name": "dotconf",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/williamh/dotconf/archive/refs/tags/v1.4.1.tar.gz",
        "sha512": "a6cada8621295b268d4b4fd85bc0c207e78324c9e84754ead2fdf6c1598ec8bdf626f9c24e66063d921c95d73e83b50ab50416a9b4c9a7a631392552ec46f55a",
        "x-checker-data": {
         "type": "anitya",
         "project-id": 13410,
         "url-template": "https://github.com/williamh/dotconf/archive/refs/tags/v$version.tar.gz"
        }
       },
       {
        "type": "script",
        "commands": [
         "autoreconf -fiv"
        ],
        "dest-filename": "autogen.sh"
       }
      ],
      "cleanup": [
       "*"
      ]
     }
    ]
   },
   {
    "name": "scons",
    "buildsystem": "simple",
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "sha256": "4210d1a80a62e986029208117991b6347ccaaaab37b67463a3ff31ee065dc487",
      "url": "https://downloads.sourceforge.net/project/scons/scons/4.11.1/SCons-4.11.1.tar.gz",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 4770,
       "url-template": "https://downloads.sourceforge.net/project/scons/scons/$version/SCons-$version.tar.gz"
      }
     }
    ],
    "build-commands": [
     "pip3 install --no-index --no-build-isolation --prefix=/app ."
    ]
   },
   {
    "name": "accesskit-c",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/godotengine/godot-accesskit-c-static/releases/download/0.21.2/accesskit-c-0.21.2.zip",
      "sha256": "02a08691b78fc6f8f88f6546e997b9f90b4ecbedf5ca5c621dbab144a4b18964"
     }
    ],
    "build-commands": [
     "mkdir -p /app/accesskit-c",
     "cp -r include lib /app/accesskit-c/"
    ],
    "cleanup": [
     "*"
    ]
   },
   {
    "name": "godot-tools",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "sha256": "a18ce0ccec3ecc40b0dd6c4f5132ca934e9fb7c2979717940ff32aee1eb35481",
      "url": "https://github.com/godotengine/godot/releases/download/4.7.2-stable/godot-4.7.2-stable.tar.xz",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 373975,
       "url-template": "https://github.com/godotengine/godot/releases/download/$version-stable/godot-$version-stable.tar.xz"
      }
     },
     {
      "type": "script",
      "dest-filename": "godot.sh",
      "commands": [
       "export APPDATA=\"$XDG_DATA_HOME\"",
       "if [ -f /app/jdk/enable.sh ]; then source /app/jdk/enable.sh; fi",
       "/app/bin/godot-bin \"$@\""
      ]
     },
     {
      "type": "file",
      "path": "org.godotengine.Godot.appdata.xml"
     }
    ],
    "build-commands": [
     "python3 /app/bin/scons $SCONS_FLAGS $SCONS_FLAGS_EXTRA target=editor -j \"$FLATPAK_BUILDER_N_JOBS\"",
     "install -D -m755 bin/godot.linuxbsd.editor.* /app/bin/godot-bin",
     "install -D -m755 godot.sh /app/bin/godot",
     "desktop-file-edit --set-icon=$FLATPAK_ID misc/dist/linux/$FLATPAK_ID.desktop",
     "install -Dm644 misc/dist/linux/$FLATPAK_ID.desktop /app/share/applications/$FLATPAK_ID.desktop",
     "install -Dm644 misc/dist/linux/$FLATPAK_ID.xml /app/share/mime/packages/$FLATPAK_ID.xml",
     "install -Dm644 $FLATPAK_ID.appdata.xml /app/share/appdata/$FLATPAK_ID.appdata.xml",
     "install -Dm644 misc/logo/icon.svg /app/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg",
     "for size in {32,64,128,256}; do\n  rsvg-convert misc/logo/icon.svg -w \"$size\" -h \"$size\" -a -f png -o \"$size.png\";\n  install -Dm644 \"$size.png\" \"/app/share/icons/hicolor/${size}x${size}/apps/$FLATPAK_ID.png\";\ndone\n"
    ]
   }
  ]
 }
}