{
 "app_id": "org.tuxfamily.XMoto",
 "source_url": "https://raw.githubusercontent.com/flathub/org.tuxfamily.XMoto/master/org.tuxfamily.XMoto.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T16:16:52.152060+00:00",
 "manifest": {
  "app-id": "org.tuxfamily.XMoto",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "xmoto",
  "finish-args": [
   "--device=all",
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--socket=pulseaudio"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/man",
   "/share/pixmaps",
   "xmoto.desktop",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/lua5.3/lua-5.3.5.json",
   "shared-modules/glu/glu-9.json",
   "shared-modules/SDL2/SDL2_image.json",
   "shared-modules/SDL2/SDL2_ttf.json",
   "shared-modules/SDL2/SDL2_mixer.json",
   {
    "name": "SDL2_net",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.4.0.tar.gz",
      "sha256": "9cbca2527feb3f1a622d48ba65cc7dee9b1e3f2c55ceafb7d7720bb058aafb30"
     }
    ]
   },
   {
    "name": "libxdg-basedir",
    "config-opts": [
     "--disable-static",
     "--enable-shared"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/devnev/libxdg-basedir/archive/libxdg-basedir-1.2.0.tar.gz",
      "sha256": "1c2b0032a539033313b5be2e48ddd0ae94c84faf21d93956d53562eef4614868"
     }
    ]
   },
   {
    "name": "xmoto",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "//": "A quick fix for: `fatal error: SDL.h: No such file or directory` error",
     "cxxflags": "-isystem /usr/include/SDL2"
    },
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "post-install": [
     "install -Dm644 $FLATPAK_BUILDER_BUILDDIR/org.tuxfamily.XMoto.desktop -t /app/share/applications/",
     "install -Dm644 $FLATPAK_BUILDER_BUILDDIR/org.tuxfamily.XMoto.appdata.xml -t /app/share/metainfo/",
     "install -Dm644 $FLATPAK_BUILDER_BUILDDIR/org.tuxfamily.XMoto.svg -t /app/share/icons/hicolor/scalable/apps/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/xmoto/xmoto/archive/refs/tags/v0.6.3.tar.gz",
      "sha256": "64cb29934660456ec82cebdaa0d3d273a862e10760e8ee80443928d317242484"
     },
     {
      "type": "patch",
      "path": "app_fix.patch"
     },
     {
      "type": "file",
      "path": "org.tuxfamily.XMoto.desktop"
     },
     {
      "type": "file",
      "path": "org.tuxfamily.XMoto.svg"
     },
     {
      "type": "file",
      "path": "org.tuxfamily.XMoto.appdata.xml"
     }
    ]
   }
  ]
 }
}