1 # luarocks installs data in a non-overridable location. Until a proper luarocks patch,
2 # we move the files around ourselves
3 echo "Sourcing luarocks-move-data-hook.sh"
5 luarocksMoveDataHook
() {
6 echo "Executing luarocksMoveDataHook"
7 if [ -d "$out/$rocksSubdir" ]; then
8 cp -rfv "$out/$rocksSubdir/$pname/$rockspecVersion/." "$out"
11 echo "Finished executing luarocksMoveDataHook"
14 echo "Using luarocksMoveDataHook"
15 preDistPhases
+=" luarocksMoveDataHook"