{
 "app_id": "org.kartkrew.RingRacers",
 "source_url": "https://raw.githubusercontent.com/flathub/org.kartkrew.RingRacers/master/org.kartkrew.RingRacers.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=all",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create",
  "--filesystem=xdg-run/discord-ipc-0"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:15:21.276288+00:00",
 "manifest": {
  "app-id": "org.kartkrew.RingRacers",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "ringracers.sh",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--socket=wayland",
   "--device=all",
   "--persist=.ringracers",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--filesystem=xdg-run/discord-ipc-0"
  ],
  "modules": [
   "shared-modules/glu/glu-9.json",
   {
    "name": "libyuv",
    "buildsystem": "cmake",
    "builddir": true,
    "sources": [
     {
      "type": "git",
      "url": "https://salsa.debian.org/debian/libyuv.git",
      "commit": "8f0761d7b98aa402548983b2f823e5c1e81d687b"
     }
    ],
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=\"Release\""
    ]
   },
   {
    "name": "ringracers",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/KartKrewDev/RingRacers/archive/e3daa1bbef09497fbd62668315d2eff4c20384c1.tar.gz",
      "sha256": "6b25ab52cd449f0b295b9742d64a8a9c1cd3d1707c1b37fbef8c0dd092d3e004"
     },
     {
      "type": "archive",
      "url": "https://github.com/KartKrewDev/RingRacers/releases/download/v2.4/Dr.Robotnik.s-Ring-Racers-v2.4-Assets.zip",
      "sha256": "eebad71b872c20f3323425bc4f4321b9b6256472bc485010d0a73c43fe0af120",
      "dest": "ringracers-data",
      "dest-filename": "assets.zip",
      "strip-components": 0
     },
     {
      "type": "file",
      "path": "ringracers.sh"
     },
     {
      "type": "file",
      "path": "org.kartkrew.RingRacers.desktop"
     },
     {
      "type": "file",
      "path": "org.kartkrew.RingRacers.metainfo.xml"
     },
     {
      "type": "file",
      "path": "org.kartkrew.RingRacers.128.png"
     }
    ],
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DCMAKE_C_FLAGS=-g1 -O3",
     "-DCMAKE_CXX_FLAGS=-g1 -O3 -fpermissive",
     "-DSRB2_CONFIG_DEV_BUILD=OFF",
     "-DSRB2_SDL2_EXE_NAME=ringracers"
    ],
    "post-install": [
     "mkdir -p $FLATPAK_DEST/bin",
     "mv $FLATPAK_DEST/ringracers $FLATPAK_DEST/bin/ringracers",
     "install -Dm 755 ../ringracers.sh -t $FLATPAK_DEST/bin",
     "install -Dm 644 ../$FLATPAK_ID.desktop -t $FLATPAK_DEST/share/applications",
     "install -Dm 644 ../$FLATPAK_ID.metainfo.xml -t $FLATPAK_DEST/share/metainfo",
     "install -Dm 644 ../$FLATPAK_ID.128.png $FLATPAK_DEST/share/icons/hicolor/128x128/apps/org.kartkrew.RingRacers.png",
     "install -Dm 644 ../srb2.png $FLATPAK_DEST/share/icons/hicolor/256x256/apps/org.kartkrew.RingRacers.png",
     "cp -r ../ringracers-data $FLATPAK_DEST"
    ]
   }
  ],
  "cleanup": [
   "*.a",
   "/include"
  ]
 }
}