biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / misc / luarocks / setup-hook.sh
blob587d5413c3eddf6dc5bfc24718d1d11d49050804
1 unpackCmdHooks+=(_trySourceRock)
2 unpackCmdHooks+=(_tryRockSpec)
4 _tryRockSpec() {
5 if ! [[ "$curSrc" =~ \.rockspec$ ]]; then return 1; fi
8 _trySourceRock() {
9 if ! [[ "$curSrc" =~ \.src.rock$ ]]; then return 1; fi
11 # luarocks expects a clean <name>.rock.spec name to be the package name
12 # so we have to strip the hash
13 renamed="$(stripHash $curSrc)"
14 cp "$curSrc" "$renamed"
15 luarocks unpack --force "$renamed"