homebrew-core/Formula/xrick.rb

36 lines
1.3 KiB
Ruby

class Xrick < Formula
desc "Clone of Rick Dangerous"
homepage "https://www.bigorno.net/xrick/"
url "https://www.bigorno.net/xrick/xrick-021212.tgz"
# There is a repo at https://github.com/zpqrtbnk/xrick but it is organized
# differently than the tarball
sha256 "aa8542120bec97a730258027a294bd16196eb8b3d66134483d085f698588fc2b"
bottle do
rebuild 2
sha256 arm64_monterey: "7030fd13f0c9ff2779deb3d3c80437d3b9903dd494928fc3aa1237b98598baa0"
sha256 arm64_big_sur: "06c5d5c23d3a83ae82c8efa8303c186cb8b07f2f274b911062c0a56df4207e96"
sha256 monterey: "39454803d7aad7a03e382ffa547f5b8a77f6af1e939f3edcd092e56c493d95fb"
sha256 big_sur: "07143daa9065782675e5288a66dc2ea8ce418754d4842175b016dbc097b982cd"
sha256 catalina: "67d2a811a5ecd67de860f226fc88feec5ed479ae05fc22e917d6fbe0686be783"
sha256 mojave: "1a2f4d0cc564fd627d83f2b54606c59845b50fb3db04e7a118ca281377b4805a"
sha256 x86_64_linux: "d75168c2036f46eac7dec382ad49aadce2df5253df37f94a5f47a286d3810904"
end
depends_on "sdl"
uses_from_macos "zlib"
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