homebrew-core/Formula/open-tyrian.rb

44 lines
1.7 KiB
Ruby

class OpenTyrian < Formula
desc "Open-source port of Tyrian"
homepage "https://github.com/opentyrian/opentyrian"
url "https://github.com/opentyrian/opentyrian/archive/refs/tags/v2.1.20221123.tar.gz"
sha256 "e0e8a8b0d61de10a3a65789ace9ea8e8c5d8dc67f3e423d2c852d64da38aeeb9"
license "GPL-2.0-or-later"
head "https://github.com/opentyrian/opentyrian.git", branch: "master"
bottle do
sha256 arm64_ventura: "97b601296652fbd37fa910ae6ee874ebe3fd0d6a6744f4518b1dbdb77db31544"
sha256 arm64_monterey: "fe7198245df131d6e19dfb50e409b8e22d069d36e9375932525cac283b0cf5f9"
sha256 arm64_big_sur: "bebfff0ef49176f0141b8c9d386609bd3ce2bb0dcbb6e2e2899c3fa1cefa481a"
sha256 ventura: "f431ffcf00b5a2080fdb5918f80f0edd794050d1b2d2a7d3de4f6fbe2e059a13"
sha256 monterey: "dd82b9fb887fb98fc009442c650b35a16c486d20d0b8b1dac74cb43f102d670f"
sha256 big_sur: "16549c5626bed5dd265ee914b75075da381cc81e1883e2a09cf841d1acfaa920"
sha256 catalina: "e23f7e095081f02181e4f7c17f5d2165da83c99691fbdacf12b036e8adb8e803"
sha256 x86_64_linux: "20d32afb8db3ce9038cdbc8424c16a081b93e0060ac43f35a3d62bcde0c54fbd"
end
depends_on "pkg-config" => :build
depends_on "sdl2"
depends_on "sdl2_net"
resource "homebrew-test-data" do
url "https://camanis.net/tyrian/tyrian21.zip"
sha256 "7790d09a2a3addcd33c66ef063d5900eb81cc9c342f4807eb8356364dd1d9277"
end
def install
datadir = pkgshare/"data"
datadir.install resource("homebrew-test-data")
system "make", "TYRIAN_DIR=#{datadir}"
bin.install "opentyrian"
end
def caveats
"Save games will be put in ~/.opentyrian"
end
test do
system "#{bin}/opentyrian", "--help"
end
end