forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathddcutil.rb
38 lines (33 loc) · 1.07 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
38
class Ddcutil < Formula
desc "Control monitor settings using DDC/CI and USB"
homepage "https://www.ddcutil.com"
url "https://www.ddcutil.com/tarballs/ddcutil-2.0.0.tar.gz"
sha256 "0ae9c54501ca937abc094eb44d2467468096efef57d7e2692479bbef71e1999b"
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: "f65f099148e8e74ea5f7fbac8b6a0e14cf72c4d349fa0a56eca33973a828b829"
end
depends_on "pkg-config" => :build
depends_on "glib"
depends_on "i2c-tools"
depends_on "jansson"
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