forked from ziz/homebrew-games
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolor-code.rb
26 lines (22 loc) · 813 Bytes
/
color-code.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
class ColorCode < Formula
desc "Free advanced MasterMind clone"
homepage "http://colorcode.laebisch.com/"
url "http://colorcode.laebisch.com/download/ColorCode-0.7.2.tar.gz"
sha256 "d1c5bf4d65c81de16c4159c2c69c096fc7ff47cca587d7233985e078d63c79aa"
bottle do
cellar :any
sha256 "4385158349a2eeb7503fc3b7a6a97d3f9235a3686eaf9a0c2f251efa6ff1bec0" => :el_capitan
sha256 "c5bf7b180d9a6fbf4e0564647e640eaa62e91969ce24684ce6f650d60dde0074" => :yosemite
sha256 "d82d9e6fef4c86b55f13dc681b9fd117a86d4885b79e43960b2cbb28cec168aa" => :mavericks
end
depends_on "qt"
def install
system "qmake"
system "make"
prefix.install "ColorCode.app"
bin.write_exec_script "#{prefix}/ColorCode.app/Contents/MacOS/colorcode"
end
test do
system "#{bin}/colorcode", "-h"
end
end