{
 "app_id": "net.sourceforge.torcs",
 "source_url": "https://raw.githubusercontent.com/flathub/net.sourceforge.torcs/master/net.sourceforge.torcs.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=all"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-17T16:13:51.307271+00:00",
 "manifest": {
  "app-id": "net.sourceforge.torcs",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "finish-args": [
   "--device=all",
   "--persist=.torcs",
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/aclocal",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "rename-desktop-file": "torcs.desktop",
  "rename-icon": "torcs",
  "command": "torcs",
  "modules": [
   "shared-modules/glu/glu-9.json",
   {
    "name": "freeglut",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "build-options": {
     "cflags": "-fcommon"
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/freeglut/freeglut.git",
      "commit": "1f1c0c11e9e900fa32948714f4d184952406b0f3"
     }
    ]
   },
   {
    "name": "libXmu",
    "cleanup": [
     "/share/doc/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.x.org/archive//individual/lib/libXmu-1.1.2.tar.bz2",
      "sha256": "756edc7c383254eef8b4e1b733c3bf1dc061b523c9f9833ac7058378b8349d0b"
     }
    ]
   },
   {
    "name": "plib",
    "rm-configure": true,
    "config-opts": [
     "CXXFLAGS=-fPIC -DXF86VIDMODE"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://plib.sourceforge.net/dist/plib-1.8.5.tar.gz",
      "sha256": "485b22bf6fdc0da067e34ead5e26f002b76326f6371e2ae006415dea6a380a32"
     },
     {
      "type": "patch",
      "path": "plib-1.8.4-fullscreen.patch"
     },
     {
      "type": "script",
      "dest-filename": "autogen.sh",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "freealut",
    "rm-configure": true,
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://pkgs.fedoraproject.org/repo/pkgs/freealut/freealut-1.1.0.tar.gz/e089b28a0267faabdb6c079ee173664a/freealut-1.1.0.tar.gz",
      "sha256": "60d1ea8779471bb851b89b49ce44eecb78e46265be1a6e9320a28b100c8df44f"
     },
     {
      "type": "script",
      "dest-filename": "autogen.sh",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "torcs",
    "no-parallel-make": true,
    "post-install": [
     "make datainstall",
     "install -Dm644 torcs.desktop -t /app/share/applications/",
     "install -Dm644 icon.png /app/share/icons/hicolor/32x32/apps/torcs.png",
     "install -Dm644 net.sourceforge.torcs.png -t /app/share/icons/hicolor/256x256/apps/",
     "install -Dm644 net.sourceforge.torcs.metainfo.xml -t /app/share/metainfo/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/project/torcs/all-in-one/1.3.8/torcs-1.3.8.tar.bz2",
      "sha256": "4b96773545fb36411982a6f3897205eb8fd572279d4ce569f2ce07b08e89a7af",
      "dest-filename": "torcs-1.3.8.tar.gz"
     },
     {
      "type": "patch",
      "path": "linuxspec-cpp-race-exit-crash-fix.diff"
     },
     {
      "type": "file",
      "path": "net.sourceforge.torcs.png"
     },
     {
      "type": "file",
      "path": "net.sourceforge.torcs.metainfo.xml"
     }
    ]
   }
  ]
 }
}