blob: c24aa9b30be0c5115bfd22660d46f83fcac2cf6d (
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
42
43
44
|
app-id: net.iotib.Pong
branch: '0.4'
appdata-license: 'GPL-3.0-only'
runtime: org.freedesktop.Platform
runtime-version: '22.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: net.iotib.Pong.metainfo.xml
- 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
|