Gameshell hanging on build-dep command

have you updated your sources with sudo apt update before?

You can also try to compile retroarch without using the debian tool.
You should get it done faster, and it is easier to configure your compilation. Try to see here:

RetroArch Megathread