homebrew-core/Formula/mpdas.rb

27 lines
932 B
Ruby

class Mpdas < Formula
desc "C++ client to submit tracks to audioscrobbler"
homepage "https://www.50hz.ws/mpdas/"
url "https://www.50hz.ws/mpdas/mpdas-0.4.5.tar.gz"
sha256 "c9103d7b897e76cd11a669e1c062d74cb73574efc7ba87de3b04304464e8a9ca"
head "https://github.com/hrkfdn/mpdas.git"
bottle do
sha256 "448514d6ac177e771f61bcd178550e317560cf3d5d73bfd240c3278d8d3f5193" => :mojave
sha256 "ae319b22981a8cc5ed9a0e0212f2ecdbd7660bcd32182334865a01ac69c2832f" => :high_sierra
sha256 "06fe51aaa95bfd3000f1f9e562709d266ecbf1880d2b96779ff0c9b9d82dea20" => :sierra
sha256 "c9261f50d1d71969474203f6431d7902198c3524d828ed6f690733094444a914" => :el_capitan
end
depends_on "pkg-config" => :build
depends_on "libmpdclient"
def install
system "make", "PREFIX=#{prefix}", "MANPREFIX=#{man1}", "CONFIG=#{etc}", "install"
etc.install "mpdasrc.example"
end
test do
system bin/"mpdas", "-v"
end
end