32 lines
913 B
Ruby
32 lines
913 B
Ruby
cask "praat" do
|
|
version "6.4.04,6404"
|
|
sha256 "394d77752c27fc74fa7fca9c765584fadfaa757effbd7403c5ad46e908c085a3"
|
|
|
|
url "https://github.com/praat/praat/releases/download/v#{version.csv.first}/praat#{version.csv.second}_mac.dmg",
|
|
verified: "github.com/praat/praat/"
|
|
name "Praat"
|
|
desc "Doing phonetics by computer"
|
|
homepage "https://www.fon.hum.uva.nl/praat/"
|
|
|
|
livecheck do
|
|
url :url
|
|
regex(%r{/v?(\d+(?:\.\d+)+)/praat(\d+)[._-]mac\.dmg$}i)
|
|
strategy :github_latest do |json, regex|
|
|
json["assets"]&.map do |asset|
|
|
match = asset["browser_download_url"]&.match(regex)
|
|
next if match.blank?
|
|
|
|
"#{match[1]},#{match[2]}"
|
|
end
|
|
end
|
|
end
|
|
|
|
app "Praat.app"
|
|
binary "#{appdir}/Praat.app/Contents/MacOS/Praat", target: "praat"
|
|
|
|
zap trash: [
|
|
"~/Library/Preferences/Praat Prefs",
|
|
"~/Library/Saved Application State/org.praat.Praat.savedState",
|
|
]
|
|
end
|