cask "anka-virtualization" do version "3.5.4.195" sha256 "187f46e11ef42480b896c1e08c6262bc6cf81699aeda412fcf39db2408b330e9" url "https://downloads.veertu.com/anka/Anka-#{version}.pkg" name "Anka Virtualization" desc "CLI tool for managing and creating virtual machines" homepage "https://veertu.com/" livecheck do url "https://veertu.com/downloads/anka-virtualization-latest" regex(/Anka[._-]?v?(\d+(?:\.\d+)+)\.pkg/i) strategy :header_match end depends_on macos: ">= :monterey" pkg "Anka-#{version}.pkg" uninstall launchctl: [ "com.veertu.anka.ankakbd", "com.veertu.anka.ankanetd", "com.veertu.anka.lupd", "com.veertu.nlimit", "com.veertu.vlaunch", ], script: { executable: "/Library/Application Support/Veertu/Anka/tools/uninstall.sh", args: ["-f"], sudo: true, }, pkgutil: "com.veertu.anka.agent.pkg" zap trash: [ "/Library/Application Support/Veertu/Anka", "~/.anka", "~/Library/Application Support/CrashReporter/ankahv_*.plist", "~/Library/Application Support/Veertu/Anka", "~/Library/Logs/Anka", "~/Library/Preferences/com.veertu.ankaview.plist", ], rmdir: [ "/Library/Application Support/Veertu", "~/Library/Application Support/Veertu", ] caveats do license "https://veertu.com/terms-and-conditions/" end end