cask "maccy" do
  version "0.16.0"
  sha256 "568816395407db5f2cbce25791df86c571d14c1b1f0d3c0869577e365394b160"

  # github.com/p0deje/Maccy/ was verified as official when first introduced to the cask
  url "https://github.com/p0deje/Maccy/releases/download/#{version}/Maccy.app.zip"
  appcast "https://github.com/p0deje/Maccy/releases.atom"
  name "Maccy"
  desc "Clipboard manager"
  homepage "https://maccy.app/"

  auto_updates true
  depends_on macos: ">= :high_sierra"

  app "Maccy.app"

  uninstall quit: "org.p0deje.Maccy"

  zap login_item: "Maccy",
      trash:      [
        "~/Library/Preferences/org.p0deje.Maccy.plist",
        "~/Library/Application Scripts/org.p0deje.Maccy",
        "~/Library/Containers/org.p0deje.Maccy",
      ]
end
