26 lines
837 B
Ruby
26 lines
837 B
Ruby
class Xrick < Formula
|
|
desc "Clone of Rick Dangerous"
|
|
homepage "http://www.bigorno.net/xrick/"
|
|
url "http://www.bigorno.net/xrick/xrick-021212.tgz"
|
|
sha256 "aa8542120bec97a730258027a294bd16196eb8b3d66134483d085f698588fc2b"
|
|
|
|
bottle do
|
|
sha256 "03e69c34042ffa8849aaa653f06ae889a6d404797a42c6549ce7de8d3de72dce" => :sierra
|
|
sha256 "772f6718786e66657b0647dc7233b3680903a2e16d06fa59a9f804dd33d5096a" => :el_capitan
|
|
sha256 "2d4e9e140f15692acd4d0e9f4a9da08d1a3e6f3d3fdbc8d4d799e6d2bde91e8f" => :yosemite
|
|
end
|
|
|
|
depends_on "sdl"
|
|
|
|
def install
|
|
inreplace "src/xrick.c", "data.zip", "#{pkgshare}/data.zip"
|
|
system "make"
|
|
bin.install "xrick"
|
|
man6.install "xrick.6.gz"
|
|
pkgshare.install "data.zip"
|
|
end
|
|
|
|
test do
|
|
assert_match "xrick [version ##{version}]", shell_output("#{bin}/xrick --help", 1)
|
|
end
|
|
end
|