Index: src/config.mak
--- src/config.mak.orig
+++ src/config.mak
@@ -17,7 +17,7 @@ PKG_CONFIG ?= pkg-config
 #
 # The name of the Lua package (it could be "lua", "lua54", or "lua5.4")
 #
-LUA_PACKAGE   ?= lua5.4
+LUA_PACKAGE   ?= lua${MODLUA_DEP_VERSION}
 #
 # Add spell checking? (you'll need to set SPELL_CFLAGS and SPELL_LIBS below)
 #
