26 lines
881 B
Ruby
26 lines
881 B
Ruby
class Mpc < Formula
|
|
desc "Command-line music player client for mpd"
|
|
homepage "https://www.musicpd.org/clients/mpc/"
|
|
url "https://www.musicpd.org/download/mpc/0/mpc-0.28.tar.gz"
|
|
sha256 "53385c2d9af0a0025943045b46cb2079b300c1224d615ac98f7ff140e968600d"
|
|
revision 1
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "aba27710d5d28f11e4df66e31baa307064c3ac6760083b0ee6411a57ff4920c1" => :sierra
|
|
sha256 "c963c018ed6d13b3bd46fd292fa42d29298499b96fc8cb60ae62accb292d6b7a" => :el_capitan
|
|
sha256 "10dbe56eb9a55d841001a9b7b553b80cd7287404b97f8526e2343b66cf6510e6" => :yosemite
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libmpdclient"
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match "query", shell_output("#{bin}/mpc list 2>&1", 1)
|
|
end
|
|
end
|