homebrew-core/Formula/dumb.rb

36 lines
1.7 KiB
Ruby

class Dumb < Formula
desc "IT, XM, S3M and MOD player library"
homepage "https://dumb.sourceforge.io"
url "https://downloads.sourceforge.net/project/dumb/dumb/0.9.3/dumb-0.9.3.tar.gz"
sha256 "8d44fbc9e57f3bac9f761c3b12ce102d47d717f0dd846657fb988e0bb5d1ea33"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d907efc07aefb58f43bca29a17b58957eb071c73e6aef3abd91e59687e5a78ed"
sha256 cellar: :any_skip_relocation, big_sur: "8ea105e8d30bae67ddb21a9e7eaba69cd2f372c41dd11d05f80756ec9d3fffee"
sha256 cellar: :any_skip_relocation, catalina: "dbb9dbb86ec1c5ff1bc9da976fe3ec481888b4c3cd5cd8b10b6c803b83d934f2"
sha256 cellar: :any_skip_relocation, mojave: "e2956b48f246b68f98a5b39e81e371bd544d78b7bb0e97f5282cfc27e9b307cd"
sha256 cellar: :any_skip_relocation, high_sierra: "674db2be479a742057619122759da52683c74b724b3e318f2fc71a4fa6bd7287"
sha256 cellar: :any_skip_relocation, sierra: "04219fcc6bf6cd174cb5c2ddde4bfdbff266ed665e543c9948911e731d682dc9"
sha256 cellar: :any_skip_relocation, el_capitan: "d2352df11bee735e963b887609578ec1b3acf0e07748385f472a6add0e1cd2b6"
sha256 cellar: :any_skip_relocation, yosemite: "317ac8139d8efb03022bb4f9a76ad61f2358570680563924d13229c52b282dff"
sha256 cellar: :any_skip_relocation, mavericks: "ee41051ed609807bfb8ce774fa614869db6bdd0fe9a307f6f2cb89f99e9db78e"
end
def install
(buildpath/"make/config.txt").write <<~EOS
include make/unix.inc
ALL_TARGETS := core core-examples core-headers
PREFIX := #{prefix}
EOS
bin.mkpath
include.mkpath
lib.mkpath
system "make"
system "make", "install"
end
test do
assert_match "Usage: dumb2wav", shell_output("#{bin}/dumb2wav 2>&1", 1)
end
end