# sudo apt -y install liblua5.3-dev # still missing lua.h after this
# so see "-DLUA_INCLUDE_DIR" below instead
#luajit_path="/usr/include/lua5.1"
if[ -d "$luajit_path"];then
ext_lua=" -DLUA_INCLUDE_DIR=$luajit_path"
else
echo"WARNING: may not be able to find lua.h on Debian-based system on 2018+ versions of minetest if you do not have the packaged version of luajit installed in the '$luajit_path' directory..."
# NOTE: as long as -DRUN_IN_PLACE=off, above installs correctly without -DCMAKE_INSTALL_PREFIX=/usr which for some reason is used by https://aur.archlinux.org/minetest-git.git
# -DCMAKE_BUILD_TYPE=Release as per https://aur.archlinux.org/minetest-git.git