Skip to content

Commit 9917ccb

Browse files
Ors1merdaeho-ro
authored andcommitted
quadcastrgb 1.0.5 (new formula)
1 parent a5c9ba5 commit 9917ccb

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Formula/q/quadcastrgb.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
class Quadcastrgb < Formula
2+
desc "Set RGB lights on HyperX QuadCast S and Duocast microphones"
3+
homepage "https://ors1mer.xyz/quadcastrgb.html"
4+
url "https://ors1mer.xyz/downloads/quadcastrgb-1.0.5.tgz"
5+
sha256 "cdbe8d638ac772579acca203bb2663d7c3a47006190a78ee2971b06c63c69648"
6+
license "GPL-2.0-only"
7+
head "https://github.com/Ors1mer/QuadcastRGB.git", branch: "main"
8+
9+
livecheck do
10+
url :homepage
11+
regex(/quadcastrgb[._-]v?(\d+(?:\.\d+)+)\.t/i)
12+
end
13+
14+
depends_on "make" => :build
15+
depends_on "libusb"
16+
17+
def install
18+
system "make", OS.mac? ? "OS=macos" : "OS=linux", "quadcastrgb"
19+
bin.install "quadcastrgb"
20+
man1.install "man/quadcastrgb.1.gz"
21+
end
22+
23+
test do
24+
assert_match version.to_s, shell_output("#{bin}/quadcastrgb --version")
25+
assert_match "No mode specified (solid|blink|cycle|lightning|wave)", \
26+
shell_output("#{bin}/quadcastrgb 2>&1", 1)
27+
assert_match "Unknown option: bad_mode", \
28+
shell_output("#{bin}/quadcastrgb bad_mode 2>&1", 1)
29+
end
30+
end

0 commit comments

Comments
 (0)