app-id: io.github.sergiou87.open-supaplex runtime: org.freedesktop.Platform runtime-version: '25.08' sdk: org.freedesktop.Sdk command: opensupaplex finish-args: # gamepad support - --device=all # X11 + XShm access - --share=ipc - --socket=x11 # Audio - --socket=pulseaudio cleanup: - /include - '*.a' - '*.la' - /lib/cmake - /lib/pkgconfig build-options: strip: true no-debuginfo: true modules: - name: libxmp buildsystem: cmake-ninja config-opts: - -DCMAKE_BUILD_TYPE=Release - -DBUILD_STATIC=OFF - -DLIBXMP_DISABLE_DEPACKERS=ON - -DLIBXMP_DISABLE_PROWIZARD=ON sources: - type: archive url: https://github.com/libxmp/libxmp/archive/refs/tags/libxmp-4.7.3.tar.gz sha256: 716b013943bac9dbe0616fccf828451d15aa862d5bac42b5286dac4572bfbd8b dest-filename: libxmp.tar.gz x-checker-data: type: anitya project-id: 1784 url-template: https://github.com/libxmp/libxmp/archive/refs/tags/libxmp-$version.tar.gz - name: sdl_mixer config-opts: - --enable-music-mod-xmp=yes sources: - type: archive url: https://github.com/libsdl-org/SDL_mixer/archive/refs/tags/release-2.8.2.tar.gz dest-filename: sdl2_mixer.tar.gz sha256: bcd36dc5df23f2a8a89ea518a323dcdde0e296bdcd9b3427d933c21165ca42ce x-checker-data: type: anitya project-id: 4782 url-template: https://github.com/libsdl-org/SDL_mixer/archive/refs/tags/release-$version.tar.gz stable-only: true versions: <: '3.0' - name: open-supaplex buildsystem: simple sources: - type: archive url: https://api.github.com/repos/sergiou87/open-supaplex/tarball/v7.2.2 dest-filename: open-supaplex.tar.gz sha256: 75509d1d95de1edbf93f6e0a82dda60a5e661ea0877bcdb8d379b0c4b3a4b461 x-checker-data: type: json url: https://api.github.com/repos/sergiou87/open-supaplex/releases/latest version-query: .tag_name url-query: .tarball_url - type: file path: io.github.sergiou87.open-supaplex.metainfo.xml build-commands: - cd linux && make -j${FLATPAK_BUILDER_N_JOBS} CFLAGS='-DFILE_FHS_XDG_DIRS -DFILE_DATA_PATH=/app/usr/share/OpenSupaplex -DHAVE_SDL2 -I/usr/include/SDL2 -I/app/include/SDL2' - install -Dm 644 ${FLATPAK_BUILDER_BUILDDIR}/linux/assets/${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo - install -Dm 644 ${FLATPAK_BUILDER_BUILDDIR}/linux/assets/${FLATPAK_ID}.svg -t /app/share/icons/hicolor/scalable/apps - install -Dm 644 ${FLATPAK_BUILDER_BUILDDIR}/linux/assets/${FLATPAK_ID}.desktop -t /app/share/applications - install -Dm755 linux/opensupaplex -t /app/bin/ - mkdir -p /app/usr/share/OpenSupaplex && cp -R resources/* /app/usr/share/OpenSupaplex/