cask "veracrypt" do version "1.26.24" sha256 "b052052519179ac5ab1ca73df9b087adcd06b95e9b872866e279a68db0745b21" url "https://launchpad.net/veracrypt/trunk/#{version}/+download/VeraCrypt_#{version}.dmg", verified: "launchpad.net/veracrypt/trunk/" name "VeraCrypt" desc "Disk encryption software focusing on security based on TrueCrypt" homepage "https://veracrypt.io/" livecheck do url "https://veracrypt.io/en/Downloads.html" regex(/href=.*?VeraCrypt[._-]v?(\d+(?:\.\d+)+)\.dmg/i) end conflicts_with cask: "veracrypt-fuse-t" depends_on cask: "macfuse" pkg "VeraCrypt_Installer.pkg" uninstall pkgutil: "com.idrix.pkg.veracrypt" zap trash: [ "~/Library/Application Support/VeraCrypt", "~/Library/Preferences/org.idrix.VeraCrypt.plist", "~/Library/Saved Application State/org.idrix.VeraCrypt.savedState", ] end