Casks/f/fabfilter-pro-r.rb
cask "fabfilter-pro-r" do
version "2.04"
sha256 "577a7ba9c2255ea58a58fce318cfde5027dddf48908fc92dc383992d0b4907cb"
url "https://cdn-b.fabfilter.com/downloads/ffpror#{version.no_dots}.dmg"
name "FabFilter Pro-R"
desc "Reverb plug-in"
homepage "https://www.fabfilter.com/products/pro-r-reverb-plug-in"
livecheck do
url "https://www.fabfilter.com/download"
strategy :page_match do |page|
match = page.match(/ffpror(\d)(\d+)\.dmg/i)
next if match.blank?
"#{match[1]}.#{match[2]}"
end
end
depends_on macos: ">= :sierra"
pkg "FabFilter Pro-R #{version} Installer.pkg"
uninstall pkgutil: "com.fabfilter.Pro-R.#{version.major}"
# No zap stanza required
end