Skip to content

Commit

Permalink
aften: update formula with test do block.
Browse files Browse the repository at this point in the history
  • Loading branch information
eirinikos authored and MikeMcQuaid committed Apr 29, 2016
1 parent c932247 commit 5dc8c6f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Formula/aften.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,20 @@ class Aften < Formula

depends_on "cmake" => :build

resource "sample_wav" do
url "http://www.mediacollege.com/audio/tone/files/1kHz_44100Hz_16bit_05sec.wav"
sha256 "949dd8ef74db1793ac6174b8d38b1c8e4c4e10fb3ffe7a15b4941fa0f1fbdc20"
end

def install
mkdir "default" do
system "cmake", "-DSHARED=ON", "..", *std_cmake_args
system "make", "install"
end
end

test do
resource("sample_wav").stage testpath
system "#{bin}/aften", "#{testpath}/1kHz_44100Hz_16bit_05sec.wav", "sample.ac3"
end
end

0 comments on commit 5dc8c6f

Please sign in to comment.