about summary refs log tree commit diff stats
path: root/bootstrap.sh
blob: c5a7472d82fd7e4c6f90598ddcdd6a4e1e4ee24e (plain) (blame)
1
2
3
#!/bin/sh

autoreconf --install
1de600
488823e ^
3f0c12d ^
6663682 ^

488823e ^


b1de600
2818ee5 ^

b1de600
2818ee5 ^

488823e ^


e1c6396 ^


488823e ^
e1c6396 ^

283fb7c ^
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