homebrew-cask/Casks/cernbox.rb

22 lines
631 B
Ruby
Raw Normal View History

cask "cernbox" do
version "2.8.2.4410"
sha256 "607b174daae8d7bd83cbeda2a66e06e8371f90c19f1cf3b5c6c941c95df2d0d7"
url "https://cernbox.cern.ch/cernbox/doc/MacOSX/cernbox-#{version}.pkg"
name "CERNBox Client"
desc "Cloud storage for CERN users"
homepage "https://cernbox.web.cern.ch/cernbox/"
2021-01-11 02:36:24 +08:00
livecheck do
url "https://cernbox.web.cern.ch/cernbox/downloads/"
strategy :page_match
regex(%r{href=.*?/cernbox-(\d+(?:\.\d+)+)\.pkg}i)
2021-01-11 02:36:24 +08:00
end
pkg "cernbox-#{version}.pkg"
uninstall signal: [["TERM", "ch.cern.cernbox"]],
login_item: "cernbox",
pkgutil: "ch.cern.cernbox"
end