{
 "app_id": "org.tuxfamily.StuntRally",
 "source_url": "https://raw.githubusercontent.com/flathub/org.tuxfamily.StuntRally/master/org.tuxfamily.StuntRally.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all"
 ],
 "module_count": 18,
 "fetched_at": "2026-09-17T16:16:52.152061+00:00",
 "manifest": {
  "app-id": "org.tuxfamily.StuntRally",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "finish-args": [
   "--device=all",
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--socket=pulseaudio"
  ],
  "command": "stuntrally",
  "rename-desktop-file": "stuntrally.desktop",
  "rename-icon": "stuntrally",
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/aclocal",
   "/share/doc",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/glu/glu-9.json",
   {
    "name": "libXmu",
    "sources": [
     {
      "type": "archive",
      "url": "https://www.x.org/releases/individual/lib/libXmu-1.1.4.tar.gz",
      "sha256": "3091d711cdc1d8ea0f545a13b90d1464c3c3ab64778fd121f0d789b277a80289"
     }
    ]
   },
   {
    "name": "libXaw",
    "sources": [
     {
      "type": "archive",
      "url": "https://www.x.org/releases/individual/lib/libXaw-1.0.14.tar.bz2",
      "sha256": "76aef98ea3df92615faec28004b5ce4e5c6855e716fa16de40c32030722a6f8e"
     }
    ]
   },
   {
    "name": "pcre",
    "config-opts": [
     "--enable-unicode-properties"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://prdownloads.sourceforge.net/pcre/pcre-8.42.tar.bz2",
      "sha256": "2cd04b7c887808be030254e8d77de11d3fe9d4505c39d4b15d2664ffe8bf9301"
     }
    ]
   },
   {
    "name": "SWIG",
    "config-opts": [
     "--without-boost",
     "--without-alllang"
    ],
    "cleanup": [
     "/bin",
     "/share/swig"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://prdownloads.sourceforge.net/swig/swig-4.0.2.tar.gz",
      "sha256": "d53be9730d8d58a16bf0cbd1f8ac0c0c3e1090573168bfa151b01eb47fa906fc"
     }
    ]
   },
   {
    "name": "zziplib",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "cflags": "-fpermissive"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/gdraheim/zziplib/archive/v0.13.72.tar.gz",
      "sha256": "93ef44bf1f1ea24fc66080426a469df82fa631d13ca3b2e4abaeab89538518dc"
     }
    ]
   },
   {
    "name": "FreeImage",
    "no-autogen": true,
    "build-options": {
     "cflags": "-fpermissive",
     "cxxflags": "-Wno-narrowing -std=c++14",
     "arch": {
      "aarch64": {
       "cflags": "-fPIC -DPNG_ARM_NEON_OPT=0",
       "cxxflags": "-fPIC -DPNG_ARM_NEON_OPT=0"
      }
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "http://downloads.sourceforge.net/freeimage/FreeImage3180.zip",
      "sha256": "f41379682f9ada94ea7b34fe86bf9ee00935a3147be41b6569c9605a53e438fd"
     },
     {
      "type": "patch",
      "path": "freeimage.patch"
     }
    ]
   },
   {
    "name": "Boost",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/boost/files/boost/1.80.0/boost_1_80_0.tar.bz2",
      "sha256": "1e19565d82e43bc59209a168f5ac899d3ba471d55c7610c677d4ccf2c9c500c0"
     }
    ],
    "build-commands": [
     "./bootstrap.sh --prefix=/app --with-libraries=system,filesystem,thread,wave",
     "./b2 install variant=release link=shared runtime-link=shared -j $FLATPAK_BUILDER_N_JOBS"
    ]
   },
   {
    "name": "OIS",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/wgois/OIS/archive/v1.5.1.tar.gz",
      "sha256": "614f6ef6d69cf6d84f1b50efff46a6c1acce426933e5f0dcf29862ea8332af73"
     }
    ]
   },
   {
    "name": "pugixml",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/zeux/pugixml/releases/download/v1.13/pugixml-1.13.tar.gz",
      "sha256": "40c0b3914ec131485640fa57e55bf1136446026b41db91c1bef678186a12abbe"
     }
    ]
   },
   {
    "name": "OGRE",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DOGRE_BUILD_COMPONENT_PAGING=TRUE",
     "-DOGRE_BUILD_COMPONENT_TERRAIN=TRUE",
     "-DOGRE_BUILD_PLUGIN_PFX=TRUE",
     "-DOGRE_BUILD_PLUGIN_GLSLANG=FALSE",
     "-DOGRE_BUILD_PLUGIN_ASSIMP=FALSE",
     "-DOGRE_BUILD_SAMPLES=FALSE",
     "-DOGRE_BUILD_TESTS=FALSE",
     "-DOGRE_BUILD_COMPONENT_OVERLAY_IMGUI=FALSE",
     "-DOGRE_BUILD_COMPONENT_CSHARP=FALSE",
     "-DOGRE_RESOURCEMANAGER_STRICT=0",
     "-DOGRE_NODELESS_POSITIONING=ON"
    ],
    "build-options": {
     "cxxflags": "-L/app/lib -lboost_system -lboost_thread",
     "ldflags": "-L/app/lib -lboost_system -lboost_thread",
     "arch": {
      "aarch64": {
       "cflags": "-fPIC",
       "cxxflags": "-fPIC"
      }
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/OGRECave/ogre/archive/v13.5.1.tar.gz",
      "sha256": "ce7e0c65d3395ad214567bdd616ee20df16769f452f1fd3e1ac6c5970890df81"
     }
    ]
   },
   {
    "name": "Bullet",
    "buildsystem": "cmake",
    "config-opts": [
     "-DBUILD_SHARED_LIBS=ON",
     "-DINSTALL_EXTRA_LIBS=ON",
     "-DBUILD_CPU_DEMOS=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/bulletphysics/bullet3/archive/refs/tags/3.24.tar.gz",
      "sha256": "6b1e987d6f8156fa8a6468652f4eaad17b3e11252c9870359e5bca693e35780b"
     }
    ]
   },
   {
    "name": "MyGUI",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DMYGUI_BUILD_DEMOS=OFF"
    ],
    "build-options": {
     "cxxflags": "-L/app/lib -lboost_system",
     "ldflags": "-L/app/lib -lboost_system",
     "arch": {
      "aarch64": {
       "cflags": "-fPIC",
       "cxxflags": "-fPIC"
      }
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/MyGUI/mygui/archive/MyGUI3.4.1.tar.gz",
      "sha256": "bdf730bdeb4ad89e6b8223967db01aa5274d2b93adc2c0d6aa4842faeed4de1a"
     },
     {
      "type": "patch",
      "path": "mygui-build.patch"
     }
    ]
   },
   {
    "name": "ENet",
    "sources": [
     {
      "type": "archive",
      "url": "http://enet.bespin.org/download/enet-1.3.17.tar.gz",
      "sha256": "a38f0f194555d558533b8b15c0c478e946310022d0ec7b34334e19e4574dcedc"
     }
    ]
   },
   {
    "name": "tinyxml",
    "sources": [
     {
      "type": "archive",
      "url": "http://sources.buildroot.net/tinyxml/tinyxml-2.6.2_2.tar.gz",
      "sha256": "8164c9ad48b9028667768a584d62f7760cfbfb90d0dd6214ad174403058da10c"
     },
     {
      "type": "script",
      "dest-filename": "autogen.sh",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "tinyxml2",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "cflags": "-fPIC",
     "cxxflags": "-fPIC"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/leethomason/tinyxml2/archive/refs/tags/9.0.0.tar.gz",
      "sha256": "cc2f1417c308b1f6acc54f88eb70771a0bf65f76282ce5c40e54cfe52952702c"
     }
    ]
   },
   {
    "name": "stuntrally",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "cxxflags": "-fpermissive -std=c++14 -Wno-deprecated-declarations"
    },
    "config-opts": [
     "-DBUILD_TRANSL_TOOL=OFF",
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/stuntrally/stuntrally.git",
      "commit": "baf2bf9c351ff2ded795f95a0657601c5acf940b"
     },
     {
      "type": "file",
      "path": "org.tuxfamily.StuntRally.appdata.xml"
     }
    ],
    "post-install": [
     "install -Dm644 ../org.tuxfamily.StuntRally.appdata.xml /app/share/appdata/org.tuxfamily.StuntRally.appdata.xml",
     "mv /app/share/icons/hicolor/512x512/apps/sr-editor.png /app/share/icons/hicolor/512x512/apps/org.tuxfamily.StuntRally.Editor.png",
     "sed -i 's:Icon=sr-editor:Icon=org.tuxfamily.StuntRally.Editor:' /app/share/applications/sr-editor.desktop",
     "mv /app/share/applications/sr-editor.desktop /app/share/applications/org.tuxfamily.StuntRally.Editor.desktop"
    ]
   },
   {
    "name": "stuntrally-data",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/stuntrally/tracks.git",
      "commit": "e7d229f112c820cb91f1e22a5d23beafffe11809"
     }
    ],
    "build-commands": [
     "mkdir -p /app/share/games/stuntrally/tracks",
     "cp -r * /app/share/games/stuntrally/tracks"
    ]
   }
  ]
 }
}