diff options
| author | Dan Weeks | 2014-06-28 16:58:58 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2014-06-29 16:01:26 +0100 |
| commit | 40e5dbdbe6090801e6577569f60ed98d41b57efe (patch) | |
| tree | 9c767cfd3185ae1a2ccb34dba817b5772f12ccf7 | |
| parent | a345f1144083d1e6c2a2e918bcc15025fde6b197 (diff) | |
| download | homebrew-40e5dbdbe6090801e6577569f60ed98d41b57efe.tar.bz2 | |
switchaudio-osx 1.0.0 (new formula)
This formula provides the OS X command line utility
SwitchAudioSource. Users will be able to switch audio sources
(input/output/system) using the command line and without needing
a GUI tool. It works with 10.7 Lion, 10.8 Mountain Lion, and 10.9
Mavericks.
| -rw-r--r-- | Library/Formula/switchaudio-osx.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/switchaudio-osx.rb b/Library/Formula/switchaudio-osx.rb new file mode 100644 index 000000000..7cc8a964d --- /dev/null +++ b/Library/Formula/switchaudio-osx.rb @@ -0,0 +1,25 @@ +require "formula" + +class SwitchaudioOsx < Formula + homepage "https://github.com/deweller/switchaudio-osx/" + url "https://github.com/deweller/switchaudio-osx/archive/1.0.0.tar.gz" + sha1 "4b7bae425f4b9ec71b67dc2c4c6f26fd195d623a" + head "https://github.com/deweller/switchaudio-osx.git" + + depends_on :macos => :lion + depends_on :xcode => :build + + def install + xcodebuild "-project", "AudioSwitcher.xcodeproj", + "-target", "SwitchAudioSource", + "SYMROOT=build", + "-verbose" + prefix.install Dir["build/Release/*"] + bin.write_exec_script "#{prefix}/SwitchAudioSource" + chmod 0755, "#{bin}/SwitchAudioSource" + end + + test do + system "#{bin}/SwitchAudioSource", "-c" + end +end |
