forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeelay.rb
30 lines (24 loc) · 967 Bytes
/
deelay.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cask "deelay" do
version "1.2.1,2023,10"
sha256 "9b239868716402024f19b942ccfbcb9ceb01e2bd82ae64d34df56afee9db85e1"
url "https://sixthsample.com/wp-content/uploads/#{version.csv.second}/#{version.csv.third}/Deelay-#{version.csv.first}.zip"
name "Deelay"
desc "Delay plugin"
homepage "https://sixthsample.com/deelay/"
livecheck do
url :homepage
regex(%r{href=.*?/(\w+)/(\w+)/deelay[._-]v?(\d+(?:\.\d+)+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map { |match| "#{match[2]},#{match[0]},#{match[1]}" }
end
end
depends_on macos: ">= :high_sierra"
pkg "Deelay-#{version.csv.first}/macOS Installer/Deelay-#{version.csv.first}-Installer.pkg"
uninstall pkgutil: [
"com.sixthsample.pkg.deelay.aax",
"com.sixthsample.pkg.deelay.au",
"com.sixthsample.pkg.deelay.presets",
"com.sixthsample.pkg.deelay.vst3",
]
zap trash: "~/Library/Application Support/Sixth Sample/Deelay.preferences"
end