Casks/s/second-life-viewer.rb
cask "second-life-viewer" do
version "7.1.9.10515727195"
sha256 "ffa12fc11356f277ba3baa67bfdab83b1e8b7e53c3e9272b0d5c28d03607c5e3"
url "http://download.cloud.secondlife.com/Viewer_#{version.major}/Second_Life_#{version.dots_to_underscores}_x86_64.dmg"
name "Linden Lab Second Life Viewer"
desc "3D browsing software for Second Life online virtual world"
homepage "https://secondlife.com/"
livecheck do
url "https://secondlife.com/support/downloads/"
strategy :page_match do |page|
v = page[%r{href=.*?/Second_Life_(\d+(?:_\d+)+)_x86_64\.dmg}i, 1]
next if v.blank?
v.tr("_", ".")
end
end
depends_on macos: ">= :sierra"
app "Second Life Viewer.app"
zap trash: [
"~/Library/Application Support/SecondLife",
"~/Library/Caches/SecondLife",
]
caveats do
requires_rosetta
end
end