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.yml16
1 files changed, 9 insertions, 7 deletions
diff --git a/net.iotib.Pong.yml b/net.iotib.Pong.yml
index 7a6e81d..e974935 100644
--- a/net.iotib.Pong.yml
+++ b/net.iotib.Pong.yml
@@ -9,13 +9,18 @@ modules:
   - name: Pong
     buildsystem: simple
     build-commands:
-      - make -C raylib/src clean
-      - make -C raylib/src
-      - make
       - 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
+      - make -C raylib-4.0.0/src USE_EXTERNAL_GLFW=FALSE RAYLIB_LIBTYPE=SHARED ROOT=root DESTDIR=/app
+      - sed -i '/ldconfig/d' raylib-4.0.0/src/Makefile
+      - make -C raylib-4.0.0/src USE_EXTERNAL_GLFW=FALSE RAYLIB_LIBTYPE=SHARED ROOT=root DESTDIR=/app install
+      - make
       - install -Dvm755 bin/*/Pong /app/Pong/pong
-      - install -Dvm755 src/flatpak_launch.sh /app/bin/flatpak_launch.sh
+      - install -Dvm755 src/flatpak/flatpak_launch.sh /app/bin/flatpak_launch.sh
       - cp -rv resources /app/Pong/
     sources:
       - type: file
@@ -28,9 +33,6 @@ modules:
       - type: dir
         path: resources
         dest: resources
-      - type: dir
-        path: raylib
-        dest: raylib
 finish-args:
   - --socket=x11
   - --device=dri