def remove_prefix(pkg_name):
    """Remove build system prefix ('py-', 'perl-', etc.) from a package name.

    After determining a name, `spack create` determines a build system.
    Some build systems prepend a special string to the front of the name.
    Since this can't be guessed from the URL, it would be unfair to say
    that these names are incorrectly parsed, so we remove them.

    Args:
        pkg_name (str): the name of the package

    Returns:
        str: the name of the package with any build system prefix removed
    """
    prefixes = [
        'r-', 'py-', 'tcl-', 'lua-', 'perl-', 'ruby-', 'llvm-',
        'intel-', 'votca-', 'octave-', 'gtkorvo-'
    ]

    prefix = next((p for p in prefixes if pkg_name.startswith(p)), '')

    return pkg_name[len(prefix):]