homebrew-core/Formula/mksh.rb

38 lines
1.9 KiB
Ruby

class Mksh < Formula
desc "MirBSD Korn Shell"
homepage "https://www.mirbsd.org/mksh.htm"
url "https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R59c.tgz"
mirror "https://pub.allbsd.org/MirOS/dist/mir/mksh/mksh-R59c.tgz"
version "59c"
sha256 "77ae1665a337f1c48c61d6b961db3e52119b38e58884d1c89684af31f87bc506"
livecheck do
url "https://www.mirbsd.org/MirOS/dist/mir/mksh/"
regex(/href=.*?mksh-R?(\d+[a-z]?)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "7f8fa2427f871cd4e4e7143244f5862988cb72e0a264c0b947c4f2f72d3655d8"
sha256 cellar: :any_skip_relocation, arm64_monterey: "c9467abce8ddfd5d5dbdfda62ab8b36d020c92ae4c06805ecafd9973e20f4307"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "4e5b153d2643f455c5be25fa8f751eed863393b454abc3df8bb9b145799152e0"
sha256 cellar: :any_skip_relocation, ventura: "410441bef1f6b4cbe36c35ec7fad198fcdbeae06a37e65c4a95471dcaa52bf26"
sha256 cellar: :any_skip_relocation, monterey: "df3d31ae543c8f8008eba65b86ac9090f21ca2f365df41e0c9984f93f1372df0"
sha256 cellar: :any_skip_relocation, big_sur: "879b0a3185d7cb75235a3204cba1b66e7353b77458b63deef3c7635e75f52ba4"
sha256 cellar: :any_skip_relocation, catalina: "ab6ffddb634219464c5993a9109a051fa728f217b7c89daa95d5b85748127bf5"
sha256 cellar: :any_skip_relocation, mojave: "354bd63fa78b08ba32eec9478a1ac6ee48276e529c3d37321808be3c5b3b3050"
sha256 cellar: :any_skip_relocation, high_sierra: "82f9d2a32196df99bc9b2a21e1a062bfc99c263a9a0ee522831d12dce3fd5b5e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c371844df8480e29acc7a3f4096944880b9652a4490d0036f6f845b4c6c3d8be"
end
def install
system "sh", "./Build.sh", "-r"
bin.install "mksh"
man1.install "mksh.1"
end
test do
assert_equal "honk",
shell_output("#{bin}/mksh -c 'echo honk'").chomp
end
end