app-id: net.iotib.Pong branch: '0.4' appdata-license: 'GPL-3.0-only' runtime: org.freedesktop.Platform runtime-version: '21.08' sdk: org.freedesktop.Sdk command: flatpak_launch.sh modules: - name: Pong buildsystem: simple build-commands: - tar -xvf src/flatpak/raylib-4.0.0.tar.gz - cd raylib-4.0.0 && mkdir build && cd build && cmake -DBUILD_EXAMPLES=OFF -DUSE_EXTERNAL_GLFW=OFF -DBUILD_SHARED_LIBS=ON -DGRAPHICS="GRAPHICS_API_OPENGL_ES2" -DCMAKE_INSTALL_PREFIX=/app -G Ninja .. && ninja && ninja install - tar -xvf src/flatpak/libatomic_ops-7.6.14.tar.gz - cd libatomic_ops-7.6.14 && ./configure --prefix=/app && make && make install - tar -xvf src/flatpak/gc-8.2.2.tar.gz - cd gc-8.2.2/build && cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/app .. && ninja && ninja install - ./build-flatpak.sh - bash -c "TUP_CONFIG=./flatpak.config ./install.sh" sources: - type: file path: install.sh - type: file path: flatpak.config - type: file path: build-flatpak.sh - type: dir path: src dest: src - type: dir path: resources dest: resources - type: dir path: docs dest: docs finish-args: - --socket=x11 - --device=dri - --device=all - --share=ipc - --socket=pulseaudio - --socket=wayland