excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / sonic-lineup.rb
blob16c487f08db65cb43eafa107f739274ed79bf21f
1 cask "sonic-lineup" do
2   version "1.1,2768"
3   sha256 "ebf5e90dbfd6cc5c3fcdd0004830d5cb7ff8b6f05ad9c7c4cac810d7a7b48c4c"
5   url "https://code.soundsoftware.ac.uk/attachments/download/#{version.csv.second}/Sonic%20Lineup-#{version.csv.first}.dmg",
6       verified: "code.soundsoftware.ac.uk/attachments/download/"
7   name "Sonic Lineup"
8   desc "Rapid visualisation of multiple audio files for comparison"
9   homepage "https://sonicvisualiser.org/sonic-lineup/"
11   livecheck do
12     url "https://code.soundsoftware.ac.uk/projects/sonic-lineup/files"
13     regex(%r{href=.*?/(\d+)/Sonic%20Lineup[._-]v?(\d+(?:\.\d+)+)\.dmg}i)
14     strategy :page_match do |page, regex|
15       page.scan(regex).map { |match| "#{match[1]},#{match[0]}" }
16     end
17   end
19   depends_on macos: ">= :sierra"
21   app "Sonic Lineup.app"
23   zap trash: [
24     "~/Library/Application Support/sonic-visualiser/Sonic Lineup",
25     "~/Library/Preferences/org.sonicvisualiser.Sonic Lineup.plist",
26     "~/Library/Preferences/org.sonicvisualiser.SonicLineup.plist",
27     "~/Library/Saved Application State/org.sonicvisualiser.SonicLineup.savedState",
28   ]
30   caveats do
31     requires_rosetta
32   end
33 end