cask "tuxguitar" do
  version "2.1.0"
  sha256 "ae4590df0965276a271eb3ab51bf0fb755c5e92c1732f83d8bb2ee7ba7fb5abc"

  url "https://github.com/helge17/tuxguitar/releases/download/#{version}/tuxguitar-#{version}-macosx-swt-cocoa-x86_64.app.tar.gz",
      verified: "github.com/helge17/tuxguitar/"
  name "TuxGuitar"
  desc "Multitrack guitar tablature editor and player"
  homepage "https://www.tuxguitar.app/"

  livecheck do
    url :url
    strategy :github_latest
  end

  disable! date: "2026-09-01", because: :fails_gatekeeper_check

  depends_on :macos

  app "tuxguitar-#{version}-macosx-swt-cocoa-x86_64.app"

  uninstall quit: "app.tuxguitar"

  zap trash: "~/Library/Application Support/tuxguitar"
end
