/
ddcutil.rb
37 lines (32 loc) 路 1.05 KB
/
ddcutil.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
37
class Ddcutil < Formula
desc "Control monitor settings using DDC/CI and USB"
homepage "https://www.ddcutil.com"
url "https://www.ddcutil.com/tarballs/ddcutil-1.4.1.tar.gz"
sha256 "9803e7da37f6034c22b330de77a1ca70aaead754dd07916b8fcae76221f6b8f9"
license "GPL-2.0-or-later"
livecheck do
url "https://www.ddcutil.com/releases/"
regex(/href=.*?ddcutil[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "52583dfb866c178c7b47ff0d804df360adbd18b85f6ae76ca0a80d9a7372e18d"
end
depends_on "pkg-config" => :build
depends_on "glib"
depends_on "i2c-tools"
depends_on "kmod"
depends_on "libdrm"
depends_on "libusb"
depends_on "libxrandr"
depends_on :linux
depends_on "systemd"
def install
system "./configure", *std_configure_args, "--disable-silent-rules"
system "make"
system "make", "install"
end
test do
assert_match "The following tests probe the runtime environment using multiple overlapping methods.",
shell_output("#{bin}/ddcutil environment")
end
end