forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadplug.rb
36 lines (31 loc) · 1.23 KB
/
adplug.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class Adplug < Formula
desc "Free, hardware independent AdLib sound player library"
homepage "https://adplug.github.io"
url "https://github.com/adplug/adplug/releases/download/adplug-2.2.1/adplug-2.2.1.tar.bz2"
sha256 "f95a015268a0dfe9ff5782f3ea7b2a69e09b8d36ccd19ebf4d979d767b6e53ef"
bottle do
rebuild 1
sha256 "4eed30fe5dd35145d3a6a7c4e90aa6e0e5fd82702f8f7e4e01d15133a676b643" => :sierra
sha256 "93e13fe26543c02933533eb1c2f36e500133f3cb685f8b63cd6d3cc452ce1357" => :el_capitan
sha256 "565bd6f10cc1be2142e13b0da0fefbbfa338736a36f4f317ba3b3bc440fb2132" => :yosemite
sha256 "ffc73557be38d8cb2c886f6b7fa000aeb3b0b9d08afb1f3173fbf74fd005c0b9" => :mavericks
end
depends_on "pkg-config" => :build
depends_on "libbinio"
resource "ksms" do
url "http://advsys.net/ken/ksmsongs.zip"
sha256 "2af9bfc390f545bc7f51b834e46eb0b989833b11058e812200d485a5591c5877"
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
resource("ksms").stage do
mkdir "#{testpath}/.adplug"
system "#{bin}/adplugdb", "-v", "add", "JAZZSONG.KSM"
end
end
end