26 lines
699 B
Ruby
26 lines
699 B
Ruby
cask "fabfilter-simplon" do
|
|
version "1.33"
|
|
sha256 "dab367f7c51265303c2d3687c27b9bb1b7e0d7073abc4e2830a91ce935051f05"
|
|
|
|
url "https://download.fabfilter.com/ffsimplon#{version.no_dots}.dmg"
|
|
name "FabFilter Simplon"
|
|
desc "Filter plug-in"
|
|
homepage "https://www.fabfilter.com/products/simplon-basic-filter-plug-in"
|
|
|
|
livecheck do
|
|
url "https://www.fabfilter.com/download"
|
|
strategy :page_match do |page|
|
|
match = page.match(/ffsimplon(\d)(\d+)\.dmg/i)
|
|
next if match.blank?
|
|
|
|
"#{match[1]}.#{match[2]}"
|
|
end
|
|
end
|
|
|
|
depends_on macos: ">= :yosemite"
|
|
|
|
pkg "FabFilter Simplon #{version} Installer.pkg"
|
|
|
|
uninstall pkgutil: "com.fabfilter.Simplon.#{version.major}"
|
|
end
|