2012-05-13 15:47:11 +00:00
|
|
|
class Alac < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Basic decoder for Apple Lossless Audio Codec files (ALAC)"
|
2015-05-22 19:51:22 +00:00
|
|
|
homepage "https://web.archive.org/web/20150319040222/http://craz.net/programs/itunes/alac.html"
|
|
|
|
url "https://web.archive.org/web/20150510210401/http://craz.net/programs/itunes/files/alac_decoder-0.2.0.tgz"
|
|
|
|
sha256 "7f8f978a5619e6dfa03dc140994fd7255008d788af848ba6acf9cfbaa3e4122f"
|
|
|
|
|
|
|
|
resource "sample" do
|
|
|
|
url "http://download.wavetlan.com/SVV/Media/HTTP/AAC/iTunes/iTunes_test4_AAC-LC_v4_Stereo_VBR_128kbps_44100Hz.m4a"
|
|
|
|
sha256 "c2b36e40aa48348837515172874db83c344bfe3fd9108956fb12c488be8e17d9"
|
|
|
|
end
|
2012-05-13 15:47:11 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make", "CFLAGS=#{ENV.cflags}", "CC=#{ENV.cc}"
|
2015-05-22 19:51:22 +00:00
|
|
|
bin.install "alac"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
resource("sample").stage do
|
|
|
|
assert_equal "file type: mp4a\n",
|
|
|
|
shell_output("#{bin}/alac -t iTunes_test4_AAC-LC_v4_Stereo_VBR_128kbps_44100Hz.m4a", 100)
|
|
|
|
end
|
2012-05-13 15:47:11 +00:00
|
|
|
end
|
|
|
|
end
|