forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcernbox.rb
36 lines (30 loc) · 1.15 KB
/
cernbox.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
cask "cernbox" do
version "5.2.1.13464"
sha256 "aa1d3e29201167f519a7c121ff8882430f7982ca44a9c18909624badea9259f0"
url "https://cernbox.cern.ch/cernbox/doc/MacOSX/cernbox-#{version}-x86_64.pkg"
name "CERNBox Client"
desc "Cloud storage for CERN users"
homepage "https://cernbox.web.cern.ch/cernbox/"
livecheck do
url "https://cernbox.web.cern.ch/cernbox/downloads/"
regex(%r{href=.*?/cernbox[._-]v?(\d+(?:\.\d+)+)-x86_64.pkg}i)
end
pkg "cernbox-#{version}-x86_64.pkg"
uninstall signal: ["TERM", "ch.cern.cernbox"],
login_item: "cernbox",
pkgutil: "ch.cern.cernbox"
zap trash: [
"~/Library/Application Scripts/ch.cern.cernbox",
"~/Library/Application Scripts/ch.cern.cernbox.FinderSyncExt",
"~/Library/Containers/ch.cern.cernbox.FinderSyncExt",
"~/Library/Group Containers/ch.cern.cernbox",
"~/Library/HTTPStorages/ch.cern.cernbox",
"~/Library/LaunchAgents/ch.cern.cernbox.plist",
"~/Library/Preferences/cernbox",
"~/Library/Preferences/ch.cern.cernbox.plist",
"~/Library/Saved Application State/ch.cern.cernbox.savedState",
]
caveats do
requires_rosetta
end
end