cask "tqsl" do version "2.7.4" sha256 "0efca11cb40d4bf4d339ae30d753d7a9ffdf7055dba9bce6a9370a531269ba6c" url "https://www.arrl.org/tqsl/tqsl-#{version}.pkg" name "Trusted QSL" desc "Sign and upload QSO records to Logbook of The World (LoTW)" homepage "https://www.arrl.org/tqsl-download" livecheck do url :homepage regex(%r{href=.*?/tqsl[._-]v?(\d+(?:\.\d+)+)\.pkg}i) end pkg "tqsl-#{version}.pkg" uninstall pkgutil: "org.arrl.tqsl" zap trash: [ "~/.tqsl", "~/Library/Preferences/org.arrl.tqsl.plist", "~/Library/Preferences/tqslapp Preferences", "~/Library/Saved Application State/org.arrl.tqsl.savedState", ] end