cask "smoothscroll" do
  version "1.7.6"
  sha256 :no_check

  url "https://www.smoothscroll.net/mac/download/SmoothScroll.app.zip"
  name "SmoothScroll"
  desc "Smooth mouse scrolling utility"
  homepage "https://www.smoothscroll.net/"

  livecheck do
    url "https://updater.smoothscroll.net/mac/updater.xml"
    strategy :sparkle, &:short_version
  end

  depends_on :macos

  app "SmoothScroll.app"

  uninstall login_item: "SmoothScroll"

  zap trash: [
    "~/Library/Caches/com.galambalazs.SmoothScroll",
    "~/Library/HTTPStorages/com.galambalazs.SmoothScroll",
    "~/Library/Preferences/com.galambalazs.SmoothScroll.plist",
  ]
end
