2014-06-19 03:26:08 +00:00
|
|
|
class Blink1 < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Control blink(1) indicator light"
|
2015-08-08 08:56:24 +00:00
|
|
|
homepage "https://blink1.thingm.com/"
|
2015-08-07 19:07:47 +00:00
|
|
|
url "https://github.com/todbot/blink1/archive/v1.97.tar.gz"
|
|
|
|
sha256 "974722b466249ee47ec27659b160d2e4fd0c2bc3732d009f180f8ffb53dc5d92"
|
2014-06-30 23:44:35 +00:00
|
|
|
head "https://github.com/todbot/blink1.git"
|
2014-06-19 03:26:08 +00:00
|
|
|
|
2014-06-20 18:45:56 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-08-08 06:42:26 +00:00
|
|
|
sha256 "2e9f712db6e0443831f0a11388eaa39d427436dba52fae83761090d13140c47f" => :yosemite
|
|
|
|
sha256 "354dfc245bab10e35bc8c62e8d44fe883b7b8dff43c7962655b88571f044f448" => :mavericks
|
|
|
|
sha256 "214dd7f114200d9425bfa51bf52b7c46f48f4bd4668e193aaf3fb5a8fcfdb94d" => :mountain_lion
|
2014-06-20 18:45:56 +00:00
|
|
|
end
|
|
|
|
|
2014-06-19 03:26:08 +00:00
|
|
|
def install
|
|
|
|
cd "commandline" do
|
|
|
|
system "make"
|
|
|
|
bin.install "blink1-tool"
|
|
|
|
lib.install "libBlink1.dylib"
|
|
|
|
include.install "blink1-lib.h"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-02-04 18:15:56 +00:00
|
|
|
system bin/"blink1-tool", "--version"
|
2014-06-19 03:26:08 +00:00
|
|
|
end
|
|
|
|
end
|