homebrew-core/Formula/mksh.rb

33 lines
1.0 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
cellar :any_skip_relocation
sha256 "879b0a3185d7cb75235a3204cba1b66e7353b77458b63deef3c7635e75f52ba4" => :big_sur
sha256 "ab6ffddb634219464c5993a9109a051fa728f217b7c89daa95d5b85748127bf5" => :catalina
sha256 "354bd63fa78b08ba32eec9478a1ac6ee48276e529c3d37321808be3c5b3b3050" => :mojave
sha256 "82f9d2a32196df99bc9b2a21e1a062bfc99c263a9a0ee522831d12dce3fd5b5e" => :high_sierra
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