cask "foobar2000" do # NOTE: "2000" is not a version number, but an intrinsic part of the product name version "2.6.5" sha256 "384f80e3cd795c5b34c760edfc5f87218e6ad54895909d2bbbf171cf07ed7d64" url "https://www.foobar2000.org/files/foobar2000-v#{version}.dmg" name "foobar2000" desc "Audio player" homepage "https://www.foobar2000.org/mac" livecheck do url :homepage regex(%r{href=.*?/foobar2000[._-]v?(\d+(?:\.\d+)+)\.dmg}i) end depends_on macos: ">= :high_sierra" app "foobar2000.app" zap trash: [ "~/Library/foobar2000", "~/Library/Preferences/com.foobar2000.mac.plist", ] end