#!/usr/bin/env bash

module_description() { printf "Install Spotify\n"; }
module_required() { return 1; }
module_should_skip() { return 1; }
module_prereqs() { return 0; }

module_main() {
  log_info "Installing Spotify..."

  if pacman -Si spotify >/dev/null 2>&1; then
    install_pacman spotify
  elif pacman -Si spotify-launcher >/dev/null 2>&1; then
    install_pacman spotify-launcher
  else
    install_aur spotify-launcher
  fi
}
