cask "subsurface" do version "6.0.5276" sha256 "942802835406a81986336565760dc660a2899ee1f9c462b695cd1cfdec72b68f" url "https://subsurface-divelog.org/downloads/Subsurface-#{version}-CICD-release.dmg", user_agent: :fake name "Subsurface" desc "Open source divelog program" homepage "https://subsurface-divelog.org/" livecheck do url "https://subsurface-divelog.org/current-release/" regex(/href=.*?Subsurface[._-]v?(\d+(?:\.\d+)+)[._-]CICD[._-]release\.dmg/i) end app "Subsurface.app" zap trash: [ "~/Library/Application Support/Subsurface", "~/Library/Caches/Subsurface", "~/Library/Preferences/org.hohndel.subsurface.Subsurface.plist", ] caveats do requires_rosetta end end