excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / h / hiarcs-chess-explorer.rb
blobb417bf10e481eec51c46dd4ea15d458340af477a
1 cask "hiarcs-chess-explorer" do
2   on_sierra :or_older do
3     version "1.9.4"
4     sha256 "eaf7627801ca4cc2351fef58bb313353eca2a51d894e28df2b627dd011856a7f"
6     livecheck do
7       skip "Legacy version"
8     end
9   end
10   on_high_sierra do
11     version "1.11.1"
12     sha256 "6f188f9c9041ed5667f0398e7b2a9b00d998bd6c77e9391163895bbd746f49ee"
14     livecheck do
15       skip "Legacy version"
16     end
17   end
18   on_mojave :or_newer do
19     version "1.12.2a"
20     sha256 "fb4569d32e04e4a0434892ad283ccfe97f00ce0525c2851e403f8a13e3cdaaf3"
22     livecheck do
23       url "https://www.hiarcs.com/mac-chess-explorer-download.html"
24       regex(%r{href=.*?/HIARCS-Chess-Explorer-Installer[._-]v?(\d+(?:\.\d+)+[a-z]?)\.pkg}i)
25     end
26   end
28   url "https://www.hiarcs.com/hce/HIARCS-Chess-Explorer-Installer-v#{version}.pkg"
29   name "(Deep) HIARCS Chess Explorer"
30   desc "Chess database, analysis and game playing program"
31   homepage "https://www.hiarcs.com/mac-chess-explorer.html"
33   pkg "HIARCS-Chess-Explorer-Installer-v#{version}.pkg"
35   uninstall signal:  ["TERM", "com.hiarcs.chessexplorer"],
36             pkgutil: "com.hiarcs.*"
38   zap trash: "~/Library/Preferences/com.hiarcs.Chess Explorer.plist",
39       rmdir: "~/Documents/HIARCS Chess"
40 end