cask "anka-build-cloud-controller" do arch arm: "arm64", intel: "amd64" version "1.51.2-184ce875" sha256 arm: "f6eed8560b5c89b35f3c4e16b7f624fa0ff0c304a41f0450990ea36567ffde7e", intel: "bf3da8c53c4161b02f5a61e2bbc60123abdf047b7a50f7bc21c6c98dfa1040d3" url "https://downloads.veertu.com/anka/anka-controller-#{arch}-#{version}.pkg" name "Anka Build Cloud Controller" desc "Anka virtual machine orchestrator GUI & API" homepage "https://veertu.com/" livecheck do url "https://veertu.com/downloads/anka-build-cloud-controller-darwin-#{arch}-latest" regex(/anka-controller-#{arch}[._-]?v?(\d+(?:\.\d+)*[._-]\h+)\.pkg/i) strategy :header_match end depends_on :macos pkg "anka-controller-#{arch}-#{version}.pkg" uninstall script: { executable: "/Library/Application Support/Veertu/Anka/tools/controller/uninstall.sh", args: ["-f"], sudo: true, } zap trash: "/Library/Logs/Veertu/AnkaController", rmdir: "/Library/Application Support/Veertu/Anka/anka-controller" caveats do license "https://veertu.com/terms-and-conditions/" end end