cask "cro-mag-rally" do
  version "3.0.1"
  sha256 "fc039fc19df8a466c7c185490e7768a81760312a89fe415c4ddb2ebc08e601e9"

  url "https://github.com/jorio/CroMagRally/releases/download/#{version}/CroMagRally-#{version}-mac.dmg",
      verified: "github.com/jorio/CroMagRally/"
  name "Cro-Mag Rally"
  desc "Prehistoric-themed 3D racing game from Pangea Software"
  homepage "https://jorio.itch.io/cromagrally"

  depends_on :macos

  app "Cro-Mag Rally.app"
  artifact "Documentation", target: "~/Library/Application Support/CroMagRally"

  zap trash: [
    "~/Library/Preferences/CroMagRally",
    "~/Library/Saved Application State/io.jor.cromagrally.savedState",
  ]
end
