Skip to content

Commit 3429aad

Browse files
committed
mac 10.96 (new formula)
1 parent 600de3d commit 3429aad

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Formula/m/mac.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
class Mac < Formula
2+
desc "Monkey's Audio lossless codec"
3+
homepage "https://www.monkeysaudio.com"
4+
url "https://monkeysaudio.com/files/MAC_1096_SDK.zip"
5+
version "10.96"
6+
sha256 "73b25a517079bb015e2066b65854a7de0d8468f050b9b96025b7a3cb038f4dba"
7+
license "BSD-3-Clause"
8+
9+
livecheck do
10+
url "https://www.monkeysaudio.com/versionhistory.html"
11+
regex(%r{<div\s+class="release">Version\s+(.*)\s+\(.*\)</div>}i)
12+
end
13+
14+
depends_on "cmake" => :build
15+
16+
def install
17+
system "cmake", "-S", ".", "-B", "build", "-DCMAKE_INSTALL_RPATH=#{rpath}", *std_cmake_args
18+
system "cmake", "--build", "build"
19+
system "cmake", "--install", "build"
20+
end
21+
22+
test do
23+
system bin/"mac", test_fixtures("test.wav"), "test.ape", "-c2000"
24+
system bin/"mac", "test.ape", "-V"
25+
system bin/"mac", "test.ape", "test.wav", "-d"
26+
assert_equal Digest::SHA256.hexdigest(test_fixtures("test.wav").read),
27+
Digest::SHA256.hexdigest((testpath/"test.wav").read)
28+
end
29+
end

0 commit comments

Comments
 (0)