cask "second-life-viewer" do version "7.1.10.10800445603" sha256 "d671a62d8d349836f4c6666f9865680ebf4d335783e48d7159cf3b26ba96aa35" 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