cask "coconutid" do
  version "3.4"
  sha256 "f6a07574bc756f9f35cbc13e65a7220f8e082dc847ff78d5895b7624324a0fdb"

  url "https://www.coconut-flavour.com/downloads/coconutID_#{version}.zip"
  name "coconutID"
  desc "Shows a Macs or iPhones manufacturing date"
  homepage "https://www.coconut-flavour.com/coconutid/"

  livecheck do
    url "https://www.coconut-flavour.com/updates/coconutID.xml"
    strategy :sparkle
  end

  auto_updates true

  app "coconutID.app"

  zap trash: [
    "~/Library/Caches/com.coconut-flavour.coconutID",
    "~/Library/Preferences/com.coconut-flavour.coconutID.plist",
  ]
end
