homebrew-cask/Casks/p/photozoom-pro.rb

20 lines
623 B
Ruby

cask "photozoom-pro" do
version "8.2.0"
sha256 :no_check # required as upstream package is updated in-place
url "https://www.benvista.com/photozoompro#{version.major}/download/mac",
user_agent: :fake
name "PhotoZoom Pro"
desc "Software for enlarging and downsizing digital photos and graphics"
homepage "https://www.benvista.com/photozoompro"
livecheck do
url "https://www.benvista.com/downloads"
regex(%r{PhotoZoom.+Version\s(\d+(?:\.\d+)+).+</td>}i)
end
pkg "PhotoZoom Pro #{version.major} Installer.mpkg"
uninstall pkgutil: "com.benvista.pkg.PhotoZoom-Pro-#{version.major}.app"
end