cask "pdf-toolbox" do version "2.0.2" sha256 "b09ce8bedd2d62478668910edb12e7c9fbdca70591d4a623edaa084bd99786eb" url "https://www.lightenpdf.com/upload/download/PDF-Toolbox-Mac-#{version.no_dots}.dmg" name "PDF Toolbox" desc "Utilities for working with PDF files" homepage "https://www.lightenpdf.com/pdf-toolbox-mac.html" livecheck do url :homepage regex(/Version\s*(\d+(?:\.\d+)*)/i) end app "PDF Toolbox.app" zap trash: [ "~/Library/Preferences/com.lightenpdf.pdftoolboxweb.plist", "~/Library/Saved Application State/com.lightenpdf.pdftoolboxweb.savedState", ] caveats do requires_rosetta end end