cask "freemind" do
  version "1.0.1"
  sha256 "0bd93317567f947e7fa3b3e8d2e0d908300642edc5e07f1929157469ffd14ea3"

  url "https://downloads.sourceforge.net/freemind/freemind/#{version}/FreeMind_#{version}.dmg",
      verified: "downloads.sourceforge.net/freemind/"
  name "FreeMind"
  desc "Mind-mapping software written in Java"
  homepage "https://freemind.sourceforge.io/wiki/index.php/Main_Page"

  deprecate! date: "2024-09-01", because: :unmaintained
  disable! date: "2025-09-02", because: :unmaintained

  depends_on :macos

  app "FreeMind.app"

  zap trash: [
    "~/.freemind",
    "~/Library/Saved Application State/freemind.main.FreeMind.savedState",
  ]

  caveats do
    requires_rosetta
  end
end
