cd
wget https://www.lua.org/ftp/lua-5.4.6.tar.gz
rm -rf lua-5.4.6
tar -xf lua-5.4.6.tar.gz
cd lua-5.4.6
patch -p1 < ../lua.diff
make mingw CC="i686-w64-mingw32-gcc" AR="i686-w64-mingw32-ar rcu" RANLIB="i686-w64-mingw32-ranlib" INSTALL_TOP=$HOME -j $(nproc)
make install CC="i686-w64-mingw32-gcc" AR="i686-w64-mingw32-ar rcu" RANLIB="i686-w64-mingw32-ranlib" INSTALL_TOP=$HOME
