# Note: depends on readline
wget -c http://www.lua.org/ftp/lua-5.3.4.tar.gz
tar -xzf lua-5.3.4.tar.gz
cd lua-5.3.4
make INSTALL_TOP="/usr" linux MYLIBS='-lncurses' MYCFLAGS='-fPIC' # Doesn't mind -j#
make INSTALL_TOP="/usr" install
make INSTALL_TOP="/usr" pc > /usr/lib/pkgconfig/lua.pc
echo 'Name: lua' >> /usr/lib/pkgconfig/lua.pc
echo 'Version: 5.3.4' >> /usr/lib/pkgconfig/lua.pc
echo 'Description: lua' >> /usr/lib/pkgconfig/lua.pc
echo 'Libs: -llua' >> /usr/lib/pkgconfig/lua.pc