phinze/homebrew-cask

View on GitHub
Casks/f/fabfilter-pro-ds.rb

Summary

Maintainability
A
1 hr
Test Coverage
cask "fabfilter-pro-ds" do
  version "1.24"
  sha256 "853364c2e73c6a8103331549957018e3b71654bc6add69414d312cd208335ebe"

  url "https://cdn-b.fabfilter.com/downloads/ffprods#{version.no_dots}.dmg"
  name "FabFilter Pro-DS"
  desc "De-esser plug-in"
  homepage "https://www.fabfilter.com/products/pro-ds-de-esser-plug-in"

  livecheck do
    url "https://www.fabfilter.com/download"
    strategy :page_match do |page|
      match = page.match(/ffprods(\d)(\d+)\.dmg/i)
      next if match.blank?

      "#{match[1]}.#{match[2]}"
    end
  end

  depends_on macos: ">= :sierra"

  pkg "FabFilter Pro-DS #{version} Installer.pkg"

  uninstall pkgutil: "com.fabfilter.Pro-DS.#{version.major}"

  # No zap stanza required
end