homebrew-core/Formula/naga.rb

23 lines
731 B
Ruby
Raw Normal View History

2017-02-06 10:26:56 +00:00
class Naga < Formula
desc "Terminal implementation of the Snake game"
homepage "https://github.com/anayjoshi/naga/"
url "https://github.com/anayjoshi/naga/archive/naga-v1.0.tar.gz"
sha256 "7f56b03b34e2756b9688e120831ef4f5932cd89b477ad8b70b5bcc7c32f2f3b3"
bottle do
cellar :any_skip_relocation
2017-02-08 08:28:13 +00:00
sha256 "8baa28b92a0d6970a857c859b11e4a1df878db5270f259bd3ccfe3b5f57f3303" => :sierra
sha256 "6ff3dd51d1cdeed9364c36c25d1c2794f973e2927077eaeb251fa0dbfc48a531" => :el_capitan
sha256 "fe303605603697993def097e9557a0dcec83d323a0b43d51fb1811108937da6c" => :yosemite
2017-02-06 10:26:56 +00:00
end
def install
bin.mkpath
system "make", "install", "INSTALL_PATH=#{bin}/naga"
end
test do
File.exist? "#{bin}/naga"
end
end