diff --git a/Casks/v/valhalla-supermassive.rb b/Casks/v/valhalla-supermassive.rb new file mode 100644 index 0000000000000..563650c447968 --- /dev/null +++ b/Casks/v/valhalla-supermassive.rb @@ -0,0 +1,24 @@ +cask "valhalla-supermassive" do + version "4.0.0" + sha256 "6f64b1401cc788877bc19ad07b1d52039196b268702fdd1f458388b2f9954377" + + url "https://valhallaproduction.s3.us-west-2.amazonaws.com/supermassive/ValhallaSupermassiveOSX_#{version.dots_to_underscores}v#{version.major}.dmg", + verified: "valhallaproduction.s3.us-west-2.amazonaws.com" + name "Valhalla Supermassive" + desc "Delay/reverb plugin" + homepage "https://valhalladsp.com/shop/reverb/valhalla-supermassive/" + + livecheck do + url "https://valhalladsp.com/demos-downloads/" + regex(/href=.*?ValhallaSupermassiveOSX[._-]v?(\d+(?:[._]\d+)+)v?\d+\.dmg/i) + strategy :page_match do |page, regex| + page.scan(regex).map { |match| match&.first&.tr("_", ".") } + end + end + + pkg "ValhallaSupermassiveOSX.pkg" + + uninstall pkgutil: "com.valhalladsp.supermassive.pkg.*" + + # No zap stanza required +end