SHA256
10
0
forked from pool/lua-macros

Make %{lua_noarchdir} work even without lua-devel installed.

This commit is contained in:
2025-10-10 12:56:20 +02:00
parent db9766d6bd
commit 22fe4289a4
2 changed files with 13 additions and 0 deletions

View File

@@ -8,7 +8,15 @@
%lua_archdir %(pkgconf --variable=INSTALL_CMOD lua)
# pure Lua modules should go here
local f = io.popen("pkgconf --variable=INSTALL_LMOD lua")
local output = f:read("*a")
f:close()
if output:len() == 0 then
%lua_noarchdir %{_datadir}/lua/%{lua_version}/luacheck/
else
%lua_noarchdir %(pkgconf --variable=INSTALL_LMOD lua)
end
# lua includes folder
%lua_incdir %(pkgconf --variable=includedir lua)