tce-load -lwi fltk-1.3-dev lua-5.4-dev sstrip squashfs-tools wget --no-check-certificate -O- https://github.com/stetre/moonfltk/archive/refs/heads/master.zip | busybox unzip -qq - cd moonfltk-master/ #remove gl sed -i 's/--use-gl//g' ./src/Makefile sed -i 's|-DUSE_GL=1|-DUSE_GL=0|g' ./src/Makefile #fix libs location sed -i 's|^INCDIR = -I/usr/include -I/usr/include/lua$(LUAVER)$|INCDIR = -I/usr/local/include -I/usr/local/include/lua$(LUAVER)|' ./src/Makefile sed -i 's|^LIBDIR = -L/usr/lib$|LIBDIR = -L/usr/locallib|' ./src/Makefile #opt sed -i 's|-O2|-Os|g' ./src/Makefile #compile make -j8 LUAVER=5.4 #install sudo make install sstrip -z /usr/local/lib/lua/5.4/moonfltk.so mkdir moonfltk_squash cp --parents /usr/local/lib/lua/5.4/moonfltk.so moonfltk_squash/ cp --parents /usr/local/share/lua/5.4/moonfltk/* moonfltk_squash/ mksquashfs moonfltk_squash/ moonfltk.tcz