pub fn remove_tarball_suffix(pkg_name: String) -> Result<String>
A small helper function that removes the .pkg.tar.* suffix of a tarball. This is necessary to get the actual package name from a packages full file name.
.pkg.tar.*