What's unsafe about this? You download a tarball, extract it, run an installer, and then you can run the program. If the archive get corrupted on the way, unxz will complain.
If it's about running programs from the internet you haven't code reviewed, then you could just review the sources and the installer before running install.sh?