-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
displaycal.rb
37 lines (30 loc) 路 1.06 KB
/
displaycal.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
cask "displaycal" do
version "3.8.9.3"
sha256 "3e3f4a506c3ffc1e2004d57c6cd521d6cacb1bb6a71f9e3fa4cd81ab6ad4f31a"
url "https://downloads.sourceforge.net/dispcalgui/release/#{version}/DisplayCAL-#{version}.pkg",
verified: "sourceforge.net/dispcalgui/"
name "DisplayCAL"
desc "Display calibration and characterization powered by ArgyllCMS"
homepage "https://displaycal.net/"
livecheck do
url "https://sourceforge.net/projects/dispcalgui/rss?path=/release"
end
auto_updates true
depends_on formula: "argyll-cms"
pkg "DisplayCAL-#{version}.pkg"
uninstall pkgutil: "net.displaycal.*.DisplayCAL.*"
zap trash: [
"~/Library/Application Support/dispcalGUI",
"~/Library/Application Support/DisplayCAL",
"~/Library/Logs/dispcalGUI",
"~/Library/Logs/DisplayCAL",
"~/Library/Preferences/dispcalGUI",
"~/Library/Preferences/DisplayCAL",
]
caveats do
<<~EOS
If #{token} asks for argyll-cms, do not choose to download.
Instead, select "Browse" and point #{token} to your #{HOMEBREW_PREFIX}/bin.
EOS
end
end