homebrew-cask/Casks/fabfilter-pro-g.rb

26 lines
689 B
Ruby

cask "fabfilter-pro-g" do
version "1.29"
sha256 "617c6ba26676c35e1ce7a40b4a90d3875554ca42dbf8903048c9f3f268c3711e"
url "https://download.fabfilter.com/ffprog#{version.no_dots}.dmg"
name "FabFilter Pro-G"
desc "Gate/expander plug-in"
homepage "https://www.fabfilter.com/products/pro-g-gate-expander-plug-in"
livecheck do
url "https://www.fabfilter.com/download"
strategy :page_match do |page|
match = page.match(/ffprog(\d)(\d+)\.dmg/i)
next if match.blank?
"#{match[1]}.#{match[2]}"
end
end
depends_on macos: ">= :sierra"
pkg "FabFilter Pro-G #{version} Installer.pkg"
uninstall pkgutil: "com.fabfilter.Pro-G.#{version.major}"
end