{
 "app_id": "com.corsixth.corsixth",
 "source_url": "https://raw.githubusercontent.com/flathub/com.corsixth.corsixth/master/com.corsixth.corsixth.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=home:ro"
 ],
 "module_count": 10,
 "fetched_at": "2026-09-17T16:07:07.898804+00:00",
 "manifest": {
  "app-id": "com.corsixth.corsixth",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "corsix-th",
  "rename-icon": "corsix-th",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--socket=pulseaudio",
   "--filesystem=home:ro",
   "--device=dri",
   "--env=LUA_CPATH=./?.so;/app/lib/lua/5.4/?.so;/app/share/lua/5.4/?.so",
   "--env=SDL_SOUNDFONTS=/app/share/soundfonts/FluidR3.sf3"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/lib/cmake",
   "/man",
   "/share/man",
   "*.a",
   "*.la"
  ],
  "modules": [
   {
    "name": "CorsixTH",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "env": {
      "CMAKE_LIBRARY_PATH": "/app/lib"
     }
    },
    "config-opts": [
     "-DWITH_UPDATE_CHECK=OFF",
     "-DWITH_FONT=/app/share/fonts/CorsixTHUnicode.ttf"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/CorsixTH/CorsixTH.git",
      "tag": "v0.70.1",
      "commit": "56bd5d00f76331c7f76d7b696726a7926303ca0c",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d\\.]+)$",
       "is-main-source": true
      }
     }
    ],
    "modules": [
     "shared-modules/lua5.4/lua-5.4.json",
     {
      "name": "LuaFileSystem",
      "buildsystem": "simple",
      "build-options": {
       "cflags": "-fPIC"
      },
      "build-commands": [
       "make PREFIX=${FLATPAK_DEST} LUA_VERSION=5.4",
       "make install PREFIX=${FLATPAK_DEST} LUA_VERSION=5.4"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/keplerproject/luafilesystem.git",
        "tag": "v1_9_0",
        "commit": "a186cca5833691e830ed255e38ace8ff6b870dbf",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^v[^_]([\\d_]+)$",
         "sort-tags": false
        }
       }
      ]
     },
     {
      "name": "LPeg",
      "buildsystem": "simple",
      "build-commands": [
       "make linux",
       "cp lpeg.so ${FLATPAK_DEST}/lib/lua/5.4/"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.1.0.tar.gz",
        "sha256": "4b155d67d2246c1ffa7ad7bc466c1ea899bbc40fef0257cc9c03cecbaed4352a",
        "x-checker-data": {
         "type": "html",
         "url": "https://www.inf.puc-rio.br/~roberto/lpeg/",
         "version-pattern": "www.inf.puc-rio.br/~roberto/lpeg/lpeg-([\\d\\.]+).tar.gz",
         "url-template": "https://www.inf.puc-rio.br/~roberto/lpeg/lpeg-$version.tar.gz"
        }
       }
      ]
     },
     {
      "name": "sdl2-mixer",
      "buildsystem": "cmake-ninja",
      "builddir": true,
      "config-opts": [
       "-DSDL2MIXER_MIDI=ON",
       "-DSDL2MIXER_MOD=OFF"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/libsdl-org/SDL_mixer.git",
        "tag": "release-2.8.2",
        "commit": "b208916aed9250fe434360e6c6a95f0697bb7b01",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^release-2.([\\d\\.]+)$"
        }
       }
      ],
      "modules": [
       "shared-modules/linux-audio/fluidsynth2.json",
       {
        "name": "fluidr3-soundfont",
        "buildsystem": "simple",
        "build-commands": [
         "install -D -m644 FluidR3.sf3 $FLATPAK_DEST/share/soundfonts/FluidR3.sf3"
        ],
        "sources": [
         {
          "type": "file",
          "url": "https://raw.githubusercontent.com/Jacalz/fluid-soundfont/master/SF3/FluidR3.sf3",
          "sha256": "32039e039c2f708467a6f171fbfd9fecdcadfe40a2327837c391490c8de70021"
         }
        ]
       }
      ]
     },
     {
      "name": "rtmidi",
      "buildsystem": "cmake-ninja",
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/thestk/rtmidi.git",
        "tag": "6.0.0",
        "commit": "1e5b49925aa60065db52de44c366d446a902547b",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^([\\d\\.]+)$"
        }
       }
      ]
     },
     {
      "name": "gonoto-font",
      "buildsystem": "simple",
      "build-commands": [
       "install -D -m644 GoNotoKurrent-Regular.ttf $FLATPAK_DEST/share/fonts/CorsixTHUnicode.ttf"
      ],
      "sources": [
       {
        "type": "file",
        "url": "https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoKurrent-Regular.ttf",
        "sha256": "2f2cee5fbb2403df352ca2005247f6c4faa70f3086ebd31b6c62308b5f2f9865"
       }
      ]
     },
     {
      "name": "ffmpeg",
      "buildsystem": "autotools",
      "config-opts": [
       "--disable-doc",
       "--disable-static",
       "--enable-shared",
       "--enable-optimizations",
       "--disable-everything",
       "--enable-decoder=smacker",
       "--enable-decoder=smackaud",
       "--enable-demuxer=smacker",
       "--enable-protocol=file"
      ],
      "cleanup": [
       "/bin/ff*",
       "/share/ffmpeg"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://git.ffmpeg.org/ffmpeg.git",
        "tag": "n9.0.1",
        "commit": "bf1b838f2ab88b4f8fd83443325c782ea0e0f7fa",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^n([\\d\\.]+)$"
        }
       }
      ]
     }
    ]
   }
  ]
 }
}