-
Notifications
You must be signed in to change notification settings - Fork 0
/
audiotools.rb
52 lines (49 loc) · 1.66 KB
/
audiotools.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
require "formula"
class Audiotools < Formula
desc ""
homepage ""
url "https://github.com/pugetsoundandvision/audiotools/archive/v0.2.05.tar.gz"
sha256 "028261353111a46058dd8bc12fce8866aefa26060f101e1fe8ed7d37bdac6b85"
head "https://github.com/pugetsoundandvision/audiotools.git"
depends_on "sdl"
depends_on "ffmpeg" => ["with-sdl2", "with-freetype", "with-opus", "with-fdk-aac"]
depends_on "cask"
depends_on "mediainfo"
depends_on "bagit"
depends_on "flac"
depends_on "md5deep"
depends_on "imagesnap"
depends_on "mediaconch"
depends_on "mpv"
depends_on "sox"
depends_on "dialog"
def install
bin.install "uwmetaedit"
bin.install "audioaip"
bin.install "verifychecksums"
etc.install "audioaip_mediaconch_policy.xml"
if File.exist? File.expand_path "/usr/local/bin/bwfmetaedit"
puts "BWF Metaedit confirmed"
else
bin.install "bwfmetaedit"
end
end
def post_install
unless `brew ls --versions audiorecorder 2>&1 | head -n1`.include? "audiorecorder"
puts "Installing audiorecorder"
system `echo 'brew tap amiaopensource/amiaos'`
system `echo 'brew install audiorecorder --ignore-dependencies'`
end
puts "Checking for dependency Textmate. If Textmate is not found will attempt to install"
if File.exist? File.expand_path "/Applications/TextMate.app"
puts "TextMate was found"
else
if `brew cask ls --versions textmate 2>&1 | head -n1`.include? "Warning: textmate is not installed"
puts "Attempting to install Textmate"
system `echo 'brew install Caskroom/cask/textmate > /dev/null'`
else
puts "Textmate was found"
end
end
end
end