cask "opera" do version "102.0.4880.40" sha256 "b295ee48d7604bdaaaa77722e1a3b32e5617af4b45b28b84a529bbed225710f7" url "https://get.geo.opera.com/pub/opera/desktop/#{version}/mac/Opera_#{version}_Setup.dmg" name "Opera" desc "Web browser" homepage "https://www.opera.com/" livecheck do url "https://ftp.opera.com/pub/opera/desktop/" regex(%r{href=["']?v?(\d+(?:\.\d+)+)/?["' >]}i) end auto_updates true app "Opera.app" zap trash: [ "~/Library/Application Support/com.operasoftware.Opera", "~/Library/Caches/com.operasoftware.Installer.Opera", "~/Library/Caches/com.operasoftware.Opera", "~/Library/Preferences/com.operasoftware.Opera.plist", "~/Library/Saved Application State/com.operasoftware.Opera.savedState", ] end