cask "panoply" do arch arm: "arm64-" version "5.5.5" sha256 arm: "4d4f8dba350b1f04e54d7962273a18b69b1d54d030ebc177132b87b5b93913bf", intel: "adb4f2cffcf266ef0c7a16bb31a97008ff33bee1bd2e2dab18cf50400df606da" url "https://www.giss.nasa.gov/tools/panoply/download/PanoplyMacOS-#{arch}#{version}.dmg" name "Panoply netCDF, HDF and GRIB Data Viewer" desc "Plot geo-referenced data from netCDF, HDF, and GRIB" homepage "https://www.giss.nasa.gov/tools/panoply/" livecheck do url "https://www.giss.nasa.gov/tools/panoply/download/" regex(/href=.*?PanoplyMacOS[._-]#{arch}v?(\d+(?:\.\d+)+)\.dmg/i) end app "Panoply.app" zap trash: [ "~/Library/Caches/gov.nasa.giss.panoply", "~/Library/Preferences/gov.nasa.giss.panoply.plist", "~/Library/Preferences/gov.nasa.giss.Panoply.prefs.xml", ] caveats do depends_on_java "11+" end end