homebrew-core/Formula/two-lame.rb

31 lines
1.0 KiB
Ruby

class TwoLame < Formula
desc "Optimized MPEG Audio Layer 2 (MP2) encoder"
homepage "https://www.twolame.org/"
url "https://downloads.sourceforge.net/project/twolame/twolame/0.4.0/twolame-0.4.0.tar.gz"
sha256 "cc35424f6019a88c6f52570b63e1baf50f62963a3eac52a03a800bb070d7c87d"
license "LGPL-2.1"
livecheck do
url :stable
end
bottle do
cellar :any
sha256 "4847a0b0e48b6f8ac14113793e18a6b31d8dce22b09dc707c35306ec2b3ecdfa" => :big_sur
sha256 "9ba9f3afb14f2ac2fa911046a83ee50ed6a93d747f0c305788a61b4138e5fe5a" => :catalina
sha256 "77d5c37574ecdf0d857e09f47e9de5eda3049fe8cd1486942a6a62a4baae6f06" => :mojave
sha256 "153c7085434a1bce73b0ce704f37997179d6e53614a7014546b9b4d3f80dec97" => :high_sierra
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
bin.install "simplefrontend/.libs/stwolame"
end
test do
system "#{bin}/stwolame", test_fixtures("test.wav"), "test.mp2"
end
end