cask "vagrant" do arch arm: "arm64", intel: "amd64" version "2.4.3" sha256 arm: "3cfe992d505271620da797cd1c43648dc9cf546c3d90f7c4d45f04741d29803f", intel: "3cfe992d505271620da797cd1c43648dc9cf546c3d90f7c4d45f04741d29803f" url "https://releases.hashicorp.com/vagrant/#{version}/vagrant_#{version}_darwin_#{arch}.dmg", verified: "hashicorp.com/vagrant/" name "Vagrant" desc "Development environment" homepage "https://www.vagrantup.com/" livecheck do url "https://developer.hashicorp.com/vagrant/install" regex(/href=[^ >]*?vagrant[._-]v?(\d+(?:\.\d+)+)(?:[._-]darwin)?(?:[._-]#{arch})?\.dmg/i) end pkg "vagrant.pkg" uninstall script: { executable: "uninstall.tool", input: ["Yes"], sudo: true, }, pkgutil: "com.vagrant.vagrant" zap trash: "~/.vagrant.d" end