cask "stratoshark@dev" do version "0.9.3rc0,225,6c63bf057d3e" sha256 "7bf95111e0e281dcd7218752778456d56159af9d4114dfa78800f768fe13a531" url "https://www.wireshark.org/download/automated/osx/Stratoshark%20#{version.csv.first}-#{version.csv.second}-g#{version.csv.third}.dmg", verified: "wireshark.org/download/" name "Stratoshark" desc "System calls and log messages analyzer" homepage "https://stratoshark.org/" livecheck do url "https://www.wireshark.org/download/automated/osx/" regex(/href=.*?Stratoshark\s+v?(\d+(?:\.\d+)+(?:rc\d+)?)[._-](\d+)[._-]g(\h+)\.dmg/i) strategy :page_match do |page, regex| page.scan(regex).map { |match| "#{match[0]},#{match[1]},#{match[2]}" } end end auto_updates true conflicts_with cask: "stratoshark" depends_on macos: ">= :big_sur" app "Stratoshark.app" binary "#{appdir}/Stratoshark.app/Contents/MacOS/dumpcap" binary "#{appdir}/Stratoshark.app/Contents/MacOS/extcap/sshdig" binary "#{appdir}/Stratoshark.app/Contents/MacOS/Stratoshark", target: "stratoshark" manpage "#{appdir}/Stratoshark.app/Contents/Resources/share/man/man1/dumpcap.1" manpage "#{appdir}/Stratoshark.app/Contents/Resources/share/man/man1/sshdig.1" manpage "#{appdir}/Stratoshark.app/Contents/Resources/share/man/man1/stratoshark.1" uninstall quit: "org.wireshark.Stratoshark" zap trash: [ "~/.config/stratoshark", "~/Library/HTTPStorages/org.wireshark.Stratoshark", "~/Library/Preferences/org.wireshark.Stratoshark.plist", ] end