homebrew-core/Formula/xrick.rb
2017-09-24 02:06:25 +02:00

27 lines
933 B
Ruby

class Xrick < Formula
desc "Clone of Rick Dangerous"
homepage "https://www.bigorno.net/xrick/"
url "https://www.bigorno.net/xrick/xrick-021212.tgz"
sha256 "aa8542120bec97a730258027a294bd16196eb8b3d66134483d085f698588fc2b"
bottle do
sha256 "a45d9b27ee02a21aa81ecc8b7eaf2718521388972559003c46fc428d15584f15" => :high_sierra
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