{
 "app_id": "org.godotengine.Godot3Sharp",
 "source_url": "https://raw.githubusercontent.com/flathub/org.godotengine.Godot3Sharp/master/org.godotengine.Godot3Sharp.yaml",
 "runtime": "org.freedesktop.Sdk",
 "runtime_version": "23.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=all",
  "--filesystem=xdg-run/speech-dispatcher",
  "--filesystem=host",
  "--talk-name=org.freedesktop.Flatpak"
 ],
 "module_count": 9,
 "fetched_at": "2026-09-17T16:15:11.081463+00:00",
 "manifest": {
  "app-id": "org.godotengine.Godot3Sharp",
  "runtime": "org.freedesktop.Sdk",
  "runtime-version": "23.08",
  "sdk": "org.freedesktop.Sdk",
  "add-extensions": {
   "org.freedesktop.Sdk.Extension.openjdk17": {
    "directory": "jdk",
    "version": "23.08",
    "no-autodownload": false,
    "autodelete": false
   }
  },
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.mono6",
   "org.freedesktop.Sdk.Extension.dotnet8"
  ],
  "command": "godot",
  "build-options": {
   "arch": {
    "x86_64": {
     "env": {
      "SCONS_FLAGS_EXTRA": "lto=full"
     }
    },
    "aarch64": {
     "env": {
      "SCONS_FLAGS_EXTRA": "arch=arm64"
     }
    }
   },
   "append-path": "/usr/lib/sdk/mono6/bin:/usr/lib/sdk/dotnet8/bin",
   "append-ld-library-path": "/usr/lib/sdk/mono6/lib:/usr/lib/sdk/dotnet8/lib",
   "prepend-path": "/app/build_staging/xvfb/bin/",
   "prepend-ld-library-path": "/app/build_staging/xvfb/lib/",
   "env": {
    "PKG_CONFIG_PATH": "/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/sdk/mono6/lib/pkgconfig:/usr/lib/sdk/dotnet8/lib/pkgconfig",
    "BUILD_NAME": "flathub",
    "DOTNET_CLI_TELEMETRY_OPTOUT": true,
    "DOTNET_NOLOGO": true,
    "DOTNET_ROOT": "/usr/lib/sdk/dotnet8/lib",
    "SCONS_FLAGS": "tools=yes platform=x11 CCFLAGS=-I/app/include prefix=/app unix_global_settings_path=/app 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 module_mono_enabled=yes udev=no\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"
  ],
  "modules": [
   "shared-modules/glu/glu-9.json",
   "xvfb-module/xvfb.json",
   {
    "name": "jdk",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/jdk"
    ]
   },
   {
    "name": "mono",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/mono6/install.sh"
    ]
   },
   {
    "name": "dotnet",
    "buildsystem": "simple",
    "build-options": {
     "arch": {
      "x86_64": {
       "env": {
        "RUNTIME": "linux-x64"
       }
      }
     }
    },
    "build-commands": [
     "/usr/lib/sdk/dotnet8/bin/install-sdk.sh",
     "cp -r /usr/lib/sdk/dotnet8/lib/packs/ /app/lib/dotnet/"
    ]
   },
   {
    "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.11.5/speech-dispatcher-0.11.5.tar.gz",
      "sha512": "d6d880bce0ae5bc2a5d519ef7740c689ae8b4b0bb658379762810e4beae3e465a429fbe19f7c490e89db0ea6a36aedd4b2287ac9251b90059b5c2cb3c0dd8a28",
      "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": "3d43b2303a924816ea0e1b345ff04c9b3e27b53eadf0f26012fc0c29b019685f",
      "url": "https://downloads.sourceforge.net/project/scons/scons/4.4.0/SCons-4.4.0.tar.gz"
     }
    ],
    "build-commands": [
     "pip3 install --no-index --no-build-isolation --prefix=/app ."
    ]
   },
   {
    "name": "godot-tools",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "sha256": "5bed20a7056d4cc3cca34001752109809ad7ae200548e98c7bbc6afbad18eda7",
      "url": "https://github.com/godotengine/godot/releases/download/3.6-stable/godot-3.6-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",
       "export DOTNET_ROOT=\"/app/lib/dotnet\"",
       "export DOTNET_CLI_TELEMETRY_OPTOUT=true",
       "export DOTNET_NOLOGO=true",
       "/app/bin/godot-bin \"$@\""
      ]
     },
     {
      "type": "file",
      "path": "nuget/nuget-source.config"
     },
     {
      "type": "file",
      "url": "https://www.nuget.org/api/v2/package/Microsoft.Build.NoTargets/2.0.1",
      "sha512": "19fd7d616993d12d633674fe1e9779eab0aa40aa21eec412561e28e8a7e2de3bae8d9fef9595257134d73f33a9dea9ee0e4ebbafbd32525c123320c1eb5bf160",
      "dest": "nuget-sources",
      "dest-filename": "microsoft.build.notargets.2.0.1.nupkg"
     },
     "nuget/nuget-sources.json",
     {
      "type": "patch",
      "path": "update-appdata.patch"
     }
    ],
    "build-commands": [
     "cp nuget-source.config modules/mono/glue/GodotSharp/nuget.config",
     "cp nuget-source.config modules/mono/editor/GodotTools/nuget.config",
     "cp nuget-source.config modules/mono/editor/Godot.NET.Sdk/nuget.config",
     "python3 /app/bin/scons $SCONS_FLAGS $SCONS_FLAGS_EXTRA mono_glue=no -j $FLATPAK_BUILDER_N_JOBS",
     "xvfb-run bin/godot.* --generate-mono-glue modules/mono/glue",
     "rm -f bin/godot.*",
     "python3 /app/bin/scons $SCONS_FLAGS $SCONS_FLAGS_EXTRA target=release_debug mono_glue=yes -j $FLATPAK_BUILDER_N_JOBS",
     "install -D -m755 bin/godot.* /app/bin/godot-bin",
     "cp -r bin/* /app/bin",
     "rm -f /app/bin/godot.*",
     "cp /app/bin/libmonosgen-2.0.so /app/lib/libmonosgen-2.0.so.1",
     "install -D -m755 godot.sh /app/bin/godot",
     "desktop-file-edit --set-name=\"Godot Engine 3 (C#/.NET)\" --set-icon=${FLATPAK_ID} misc/dist/linux/org.godotengine.Godot.desktop",
     "install -Dm644 misc/dist/linux/org.godotengine.Godot.desktop /app/share/applications/$FLATPAK_ID.desktop",
     "install -Dm644 misc/dist/linux/org.godotengine.Godot.xml /app/share/mime/packages/$FLATPAK_ID.xml",
     "install -Dm644 misc/dist/linux/org.godotengine.Godot.appdata.xml /app/share/appdata/$FLATPAK_ID.appdata.xml",
     "install -Dm644 icon.svg /app/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg"
    ]
   }
  ]
 }
}