27 lines
808 B
Ruby
27 lines
808 B
Ruby
class Blink1 < Formula
|
|
desc "Control blink(1) indicator light"
|
|
homepage "https://blink1.thingm.com/"
|
|
url "https://github.com/todbot/blink1-tool.git",
|
|
:tag => "v2.0.5",
|
|
:revision => "ab2230d1164020f92cea4b7071e3b3ab4b320421"
|
|
head "https://github.com/todbot/blink1-tool.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "a7443c93dae3d13fef21b814396945d666ff3d32756106b2bc479dbf843e0e72" => :catalina
|
|
sha256 "a7443c93dae3d13fef21b814396945d666ff3d32756106b2bc479dbf843e0e72" => :mojave
|
|
sha256 "7066a0cdd84d176e63e466c742d06e358685e18c6262f55b41d70a4a9a196638" => :high_sierra
|
|
end
|
|
|
|
def install
|
|
system "make"
|
|
bin.install "blink1-tool"
|
|
lib.install "libBlink1.dylib"
|
|
include.install "blink1-lib.h"
|
|
end
|
|
|
|
test do
|
|
system bin/"blink1-tool", "--version"
|
|
end
|
|
end
|