1 unpackCmdHooks
+=(_trySourceRock
)
2 unpackCmdHooks
+=(_tryRockSpec
)
5 if ! [[ "$curSrc" =~ \.rockspec$
]]; then return 1; fi
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"