SHA256
10
0
forked from pool/lua-macros

Accepting request 1312655 from devel:languages:lua

- Rewrite %luarocks_install to use a shell script
  install-lua-rock.sh, which is packaged as well.

OBS-URL: https://build.opensuse.org/request/show/1312655
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-macros?expand=0&rev=14
This commit is contained in:
2025-10-23 14:35:38 +00:00
committed by Git OBS Bridge
parent 1f556cc5a6
commit 89a02f3b9c
5 changed files with 16 additions and 10 deletions

View File

@@ -97,7 +97,4 @@ luarocks --lua-version "%{lua_version}" make --deps-mode none --pack-binary-rock
%luarocks_treedir %{_prefix}/lib/luarocks/rocks-%{lua_version}
%luarocks_install \
/bin/sh -c 'luarocks --lua-version="%{lua_version}" --tree="%{buildroot}%{_prefix}" install --deps-mode=none --no-manifest "$@" && \
source_dir="%{buildroot}%{luarocks_treedir}/%{mod_name}/%{rock_version}" && \
[ -d "${source_dir}" ] && [ "$(ls -A "${source_dir}" | wc -l)" -gt 0 ] && \
mv -v "${source_dir}" __rocktree' --
%{_rpmconfigdir}/install-lua-rock.sh "%{lua_version}" "%{buildroot}%{_prefix}" "%{buildroot}%{luarocks_treedir}/%{mod_name}"