For openSUSE Tumbleweed run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:lua/openSUSE_Tumbleweed/devel:languages:lua.repo
zypper refresh
zypper install lua54
For openSUSE Factory zSystems run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:lua/openSUSE_Factory_zSystems/devel:languages:lua.repo
zypper refresh
zypper install lua54
For openSUSE Factory PowerPC run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:lua/openSUSE_Factory_PowerPC/devel:languages:lua.repo
zypper refresh
zypper install lua54
For openSUSE Factory ARM run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:lua/openSUSE_Factory_ARM/devel:languages:lua.repo
zypper refresh
zypper install lua54
For 15.6 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:lua/15.6/devel:languages:lua.repo
zypper refresh
zypper install lua54
For 15.5 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:languages:lua/15.5/devel:languages:lua.repo
zypper refresh
zypper install lua54