homebrew-cask/Casks/f/fabfilter-twin.rb

28 lines
719 B
Ruby

cask "fabfilter-twin" do
version "3.02"
sha256 "b7802aca1594ecc5d771f8f46225180924bd82e62b3bcfbdc41552a9b15b9190"
url "https://download.fabfilter.com/fftwin#{version.no_dots}.dmg"
name "FabFilter Twin"
desc "Synthesizer plug-in"
homepage "https://www.fabfilter.com/products/twin-2-powerful-synthesizer-plug-in"
livecheck do
url "https://www.fabfilter.com/download"
strategy :page_match do |page|
match = page.match(/fftwin(\d)(\d+)\.dmg/i)
next if match.blank?
"#{match[1]}.#{match[2]}"
end
end
depends_on macos: ">= :sierra"
pkg "FabFilter Twin #{version} Installer.pkg"
uninstall pkgutil: "com.fabfilter.Twin.#{version.major}"
# No zap stanza required
end