blob: e974935632b2e5b71113dd7b279802b9b9ad8c73 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
app-id: net.iotib.Pong
branch: '0.2'
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:
- 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/flatpak_launch.sh /app/bin/flatpak_launch.sh
- cp -rv resources /app/Pong/
sources:
- type: file
path: Makefile
- type: file
path: Pong.make
- type: dir
path: src
dest: src
- type: dir
path: resources
dest: resources
finish-args:
- --socket=x11
- --device=dri
- --share=ipc
- --socket=pulseaudio
- --socket=wayland
|