on not-tetris-2 help sign in
flathub/net.stabyourself.nottetris2.yml
109 lines 3.5 kB history raw
1id: net.stabyourself.nottetris2
2runtime: org.freedesktop.Platform
3runtime-version: "20.08"
4sdk: org.freedesktop.Sdk
5command: /app/bin/nottetris2.sh
6finish-args:
7 - --share=ipc
8 - --share=network
9 - --socket=pulseaudio
10 - --socket=x11
11 - --device=dri
12modules:
13 - shared-modules/glu/glu-9.json
14 - shared-modules/SDL/SDL-1.2.15.json
16 # TODO: use luajit for x86 and x86_64
17 - name: lua
18 no-autogen: true
19 sources:
20 - type: archive
21 url: https://www.lua.org/ftp/lua-5.1.5.tar.gz
22 sha256: 2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333
23 - type: patch
24 path: lua.patch
26 - name: libmng
27 sources:
28 - type: archive
29 url: http://downloads.sourceforge.net/sourceforge/libmng/libmng-2.0.3.tar.xz
30 sha256: 4a462fdd48d4bc82c1d7a21106c8a18b62f8cc0042454323058e6da0dbb57dd3
32 - name: physfs
33 buildsystem: cmake-ninja
34 config-opts:
35 - -DCMAKE_BUILD_TYPE=RelWithDebInfo
36 sources:
37 - type: archive
38 url: http://icculus.org/physfs/downloads/physfs-3.0.1.tar.bz2
39 sha256: b77b9f853168d9636a44f75fca372b363106f52d789d18a2f776397bf117f2f1
41 - name: libdevil
42 config-opts:
43 - --enable-IL=yes
44 - --enable-ILU=yes
45 - --enable-ILUT=yes
46 - --disable-static
47 rm-configure: true
48 sources:
49 - type: archive
50 url: https://github.com/LuaDist/libdevil/archive/1.7.8.tar.gz
51 sha256: eaa088ea7544343750096fad2bcf8d14b907c6c3fe9714a56e2b54d391a2e25e
53 - type: patch
54 path: libdevil-include_IL-il.h.patch
56 - type: patch
57 path: libdevil-libpng14.patch
59 - type: script
60 dest-filename: autogen.sh
61 commands:
62 - AUTOMAKE="automake --foreign" autoreconf -vfi
64 - name: libmodplug
65 sources:
66 - type: archive
67 url: http://downloads.sourceforge.net/modplug-xmms/libmodplug-0.8.9.0.tar.gz
68 sha256: 457ca5a6c179656d66c01505c0d95fafaead4329b9dbaa0f997d00a3508ad9de
70 - name: love
71 build-options:
72 env:
73 LIBS: -ldl
74 rm-configure: true
75 sources:
76 - type: archive
77 url: https://github.com/love2d/love/releases/download/0.7.2/love-0.7.2-linux-src.tar.gz
78 sha256: a57adcb0cbdc390a9bd8e2fe477bc175799b9ffd3486e01f859a36bf27f7f268
80 - type: patch
81 path: love-buildfix.patch
83 - type: script
84 dest-filename: autogen.sh
85 commands:
86 - AUTOMAKE="automake --foreign" autoreconf -vfi
88 - name: nottetris2
89 buildsystem: simple
90 build-commands:
91 - unzip nottetris2-linux.zip
92 - install -Dm644 'Not Tetris 2.love' /app/files/nottetris2.love
93 - install -Dm555 nottetris2.sh /app/bin/nottetris2.sh
94 - install -Dm644 512x512.png /app/share/icons/hicolor/512x512/apps/net.stabyourself.nottetris2.png
95 - install -Dm644 net.stabyourself.nottetris2.desktop /app/share/applications/net.stabyourself.nottetris2.desktop
96 - install -Dm644 net.stabyourself.nottetris2.appdata.xml /app/share/metainfo/net.stabyourself.nottetris2.appdata.xml
97 sources:
98 - type: file
99 url: http://stabyourself.net/dl.php?file=nottetris2/nottetris2-linux.zip
100 sha256: e2b8737e1e761174bbb0cdea403a2b7558732b682f5a1e32ea3ee956192ea88c
101 dest-filename: nottetris2-linux.zip
102 - type: file
103 path: nottetris2.sh
104 - type: file
105 path: 512x512.png
106 - type: file
107 path: net.stabyourself.nottetris2.desktop
108 - type: file
109 path: net.stabyourself.nottetris2.appdata.xml