cask "denemo" do
  version "2.2"
  sha256 "6ec66279be560e6e997b1108ae9ed61e6c37c36a350fbd99cd3dded8e2cfbe5f"

  url "https://denemo.org/downloads/denemo-#{version}-darwin-x64.tar.bz2"
  name "Denemo"
  desc "Music notation program"
  homepage "https://denemo.org/"

  deprecate! date: "2024-11-16", because: :discontinued
  disable! date: "2025-11-16", because: :discontinued

  depends_on :macos

  app "Denemo.app"

  zap trash: [
    "~/Library/Fonts/truetype/denemo",
    "~/Library/Preferences/denemo.plist",
  ]

  caveats do
    requires_rosetta
  end
end
