2022-06-26 10:26:21 +00:00
|
|
|
# luarocks installs data in a non-overridable location. Until a proper luarocks patch,
|
|
|
|
# we move the files around ourselves
|
|
|
|
echo "Sourcing luarocks-move-data-hook.sh"
|
|
|
|
|
|
|
|
luarocksMoveDataHook () {
|
|
|
|
echo "Executing luarocksMoveDataHook"
|
|
|
|
if [ -d "$out/$rocksSubdir" ]; then
|
2022-10-30 15:09:59 +00:00
|
|
|
cp -rfv "$out/$rocksSubdir/$pname/$rockspecVersion/." "$out"
|
2022-06-26 10:26:21 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Finished executing luarocksMoveDataHook"
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "Using luarocksMoveDataHook"
|
2023-03-24 00:07:29 +00:00
|
|
|
preFixupHooks+=(luarocksMoveDataHook)
|