cask "au-lab" do
  version "2.3"
  sha256 :no_check

  url "https://www.apple.com/apple-music/apple-digital-masters/docs/au_lab.zip"
  name "AU Lab"
  desc "Digital audio mixing application"
  homepage "https://www.apple.com/apple-music/apple-digital-masters/"

  livecheck do
    url :url
    strategy :extract_plist
  end

  depends_on :macos

  app "AU Lab.app"

  zap trash: "~/Library/Preferences/com.apple.aulab.plist"

  caveats do
    requires_rosetta
  end
end
