about summary refs log tree commit diff stats
path: root/net.iotib.Pong.yml
diff options
context:
space:
mode:
Diffstat (limited to 'net.iotib.Pong.yml')
-rw-r--r--net.iotib.Pong.yml29
1 files changed, 15 insertions, 14 deletions
diff --git a/net.iotib.Pong.yml b/net.iotib.Pong.yml
index c39290a..23787a6 100644
--- a/net.iotib.Pong.yml
+++ b/net.iotib.Pong.yml
@@ -9,33 +9,34 @@ modules:
   - name: Pong
     buildsystem: simple
     build-commands:
-      - mkdir -pv /app/Pong
-      - mkdir -pv /app/bin
-      - mkdir -pv /app
-      - mkdir -pv /app/lib
-      - mkdir -pv /app/include
       - tar -xvf src/flatpak/raylib-4.0.0.tar.gz
-      - cmake -B raylib-4.0.0/build -DUSE_EXTERNAL_GLFW=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF -DPLATFORM=Desktop -DCMAKE_INSTALL_PREFIX=/app raylib-4.0.0
-      - make -C raylib-4.0.0/build
-      - make -C raylib-4.0.0/build install
-      - make
-      - install -Dvm755 bin/*/Pong /app/Pong/pong
-      - install -Dvm755 src/flatpak/flatpak_launch.sh /app/bin/flatpak_launch.sh
-      - cp -rv resources /app/Pong/
+      - 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: Makefile
+        path: install.sh
       - type: file
-        path: Pong.make
+        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