{ "id": "net.classicube.flatpak.client", "runtime": "org.freedesktop.Platform", "runtime-version": "23.08", "sdk": "org.freedesktop.Sdk", "command": "ClassiCubeLauncher", "finish-args": [ "--socket=wayland", "--socket=fallback-x11", "--device=dri", "--share=network", "--share=ipc", "--socket=pulseaudio" ], "modules": [ { "name": "SDL3", "buildsystem": "cmake-ninja", "builddir": true, "sources": [ { "type": "git", "url": "https://github.com/libsdl-org/SDL.git", "branch": "main" } ], "cleanup": [ "/bin/sdl3-config", "/include", "/lib/libSDL3.la", "/lib/libSDL3main.a", "/lib/libSDL3main.la", "/lib/libSDL3_test.a", "/lib/libSDL3_test.la", "/lib/cmake", "/share/aclocal", "/lib/pkgconfig" ], "modules": [ { "name": "libdecor", "buildsystem": "meson", "config-opts": [ "-Ddemo=false" ], "sources": [ { "type": "git", "url": "https://gitlab.freedesktop.org/libdecor/libdecor.git" } ], "cleanup": [ "/include", "/lib/pkgconfig" ] } ] }, { "name": "ClassiCube", "buildsystem": "simple", "build-commands": [ "gcc -fno-math-errno src/*.c -o src/ClassiCube -rdynamic -lpthread -lGL -DCC_WIN_BACKEND=CC_WIN_BACKEND_SDL3 -DCC_GFX_BACKEND=CC_GFX_BACKEND_GL2 -DCC_BUILD_FLATPAK -L /app/lib -lSDL3", "install -Dm755 src/ClassiCube -t ${FLATPAK_DEST}/bin", "install -Dm755 misc/linux/flatpak/ClassiCubeLauncher -t ${FLATPAK_DEST}/bin", "install -Dm644 misc/linux/flatpak/net.classicube.flatpak.client.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/net.classicube.flatpak.client.svg", "install -Dm644 misc/linux/flatpak/net.classicube.flatpak.client.desktop ${FLATPAK_DEST}/share/applications/net.classicube.flatpak.client.desktop", "install -Dm644 misc/linux/flatpak/net.classicube.flatpak.client.metainfo.xml ${FLATPAK_DEST}/share/metainfo/net.classicube.flatpak.client.metainfo.xml" ], "sources": [ { "type": "git", "url": "https://github.com/ClassiCube/ClassiCube.git" } ] } ] }