homebrew-core/Formula/wavpack.rb

46 lines
1.8 KiB
Ruby

class Wavpack < Formula
desc "Hybrid lossless audio compression"
homepage "https://www.wavpack.com/"
url "https://www.wavpack.com/wavpack-5.4.0.tar.bz2"
sha256 "0716a6dcf9a72d61005e1b09bbbd61aaf49837cb4e4a351992a6daed16cac034"
license "BSD-3-Clause"
bottle do
sha256 cellar: :any, arm64_monterey: "6648965ef20e4dc6d115aa12ab7b627711b6a4ab8ac8555a87249e11594a423a"
sha256 cellar: :any, arm64_big_sur: "3e51f2f593fffc58cd550236d6a9711900841d388d6ac7833c09f272270d5156"
sha256 cellar: :any, monterey: "1de517ac8c52b75c8928a9b3f1ce325acd9e4aecff3a21aed26e11d79be7352f"
sha256 cellar: :any, big_sur: "711535e6329af607e974ee9e3e957fd82b056af39e95a78226bd9e8f9a0025dd"
sha256 cellar: :any, catalina: "29360357a18df2827e8acb41fdd874495b62f431deb230c96b8d5dcca5f6d316"
sha256 cellar: :any, mojave: "89815dc5f1b4af0d647d2b1d3ad484ddce39208958bb315793240aa7be0c4565"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c6258f61ddd3478cbbeffc8cd939dd65222d209214a1f291859f2c00108039e3"
end
head do
url "https://github.com/dbry/WavPack.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
def install
args = %W[--prefix=#{prefix} --disable-dependency-tracking]
# ARM assembly not currently supported
# https://github.com/dbry/WavPack/issues/93
args << "--disable-asm" if Hardware::CPU.arm?
if build.head?
system "./autogen.sh", *args
else
system "./configure", *args
end
system "make", "install"
end
test do
system bin/"wavpack", test_fixtures("test.wav"), "-o", testpath/"test.wv"
assert_predicate testpath/"test.wv", :exist?
end
end