def control_prototype_dependencies(install):
    """Add or remove dependencies with apt."""
    import sh
    dependencies = ['gir1.2-goa-1.0', 'libcairo2-dev',
        'libgirepository1.0-dev', 'libssl-dev',
        'network-manager-openvpn-gnome', 'python3-dev', 'yad', 'rclone']
    dependency_string = ', '.join(dependencies)
    if install:
        print('Installing ' + dependency_string)
        sh.contrib.sudo.apt.install(dependencies)
    else:
        print('Uninstalling ' + dependency_string)
        sh.contrib.sudo.apt.remove(dependencies)
