-
Notifications
You must be signed in to change notification settings - Fork 3
/
com.zerobrane.studio.yml
102 lines (94 loc) · 2.98 KB
/
com.zerobrane.studio.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
app-id: com.zerobrane.studio
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: zbstudio
rename-icon: zbstudio
rename-desktop-file: zbstudio.desktop
rename-appdata-file: zbstudio.appdata.xml
finish-args:
- "--share=ipc"
- "--socket=x11"
- "--share=network"
- "--filesystem=home"
- "--device=dri"
cleanup:
- /include
- /lib/pkgconfig
- /share/aclocal
- /share/man
- '*.la'
- '*.a'
- /share/doc
modules:
- shared-modules/intltool/intltool-0.51.json
- shared-modules/glu/glu-9.json
- name: wxWidgets
sources:
- type: git
url: https://github.com/wxWidgets/wxWidgets
tag: v3.1.4
config-opts:
- --with-gtk=3
- --enable-unicode
- name: lua-5.1
buildsystem: simple
build-commands:
- make -j $FLATPAK_BUILDER_N_JOBS CFLAGS="$CFLAGS -fPIC -DLUA_USE_LINUX" linux
- make INSTALL_TOP=$FLATPAK_DEST TO_LIB='liblua.a liblua.so.5.1.5' install
- ln -sf liblua.so.5.1.5 $FLATPAK_DEST/lib/liblua.so
- ln -sf liblua.so.5.1.5 $FLATPAK_DEST/lib/liblua.so.5.1
- install -Dm0644 etc/lua.pc $FLATPAK_DEST/lib/pkgconfig/lua.pc
- ln -sf lua.pc $FLATPAK_DEST/lib/pkgconfig/lua51.pc
- ln -sf lua.pc $FLATPAK_DEST/lib/pkgconfig/lua5.1.pc
- ln -sf lua.pc $FLATPAK_DEST/lib/pkgconfig/lua-5.1.pc
sources:
- type: archive
url: https://www.lua.org/ftp/lua-5.1.5.tar.gz
sha256: 2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333
- type: patch
path: lua-5.1.5-so.patch
- type: shell
commands:
- sed -i "s|/usr/local|$FLATPAK_DEST|" etc/lua.pc src/luaconf.h
- name: wxLua
buildsystem: cmake-ninja
subdir: wxLua
config-opts:
- -DwxWidgets_CONFIG_EXECUTABLE=/app/bin/wx-config
- -DwxLua_LUA_LIBRARY_USE_BUILTIN=OFF
- -DwxLua_LUA_LIBRARY_VERSION=5.1
- -DwxLua_LUA_LIBRARY_BUILD_SHARED=ON
- -DBUILD_SHARED_LIBS=ON
post-install:
- install -d ${FLATPAK_DEST}/lib/lua/5.1
- mv ${FLATPAK_DEST}/lib/{lib,lua/5.1/}wx.so
sources:
- type: git
url: https://github.com/pkulchenko/wxlua
tag: v3.0.0.9
commit: c6b71e91e66775d8397ad995410ecb5176e85b51
- name: luasocket
buildsystem: simple
build-commands:
- make LUAV=5.1 linux
- make install-unix INSTALL_TOP=${FLATPAK_DEST} INSTALL_TOP_CDIR=${FLATPAK_DEST}/lib/lua/5.1/ INSTALL_TOP_LDIR=${FLATPAK_DEST}/share/lua/5.1/
sources:
- type: git
url: https://github.com/lunarmodules/luasocket
tag: v3.1.0
commit: 95b7efa9da506ef968c1347edf3fc56370f0deed
- name: ZeroBraneStudio
buildsystem: cmake-ninja
subdir: build
post-install:
- cp -a ../lualibs ${FLATPAK_DEST}/share/zbstudio/
sources:
- type: git
url: https://github.com/pkulchenko/ZeroBraneStudio
tag: '2.01'
commit: 483ef0dcb593f9599ff27715472425e39a0588e8
- type: patch
path: zbstudio.patch
- type: patch
path: appstream.patch