homebrew-core/Formula/mksh.rb
Richard Hartmann 8a92d14417 mksh R45
Closes Homebrew/homebrew#19468.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-27 10:20:09 -07:00

28 lines
737 B
Ruby

require 'formula'
class CpioDownloadStrategy < CurlDownloadStrategy
def stage
system "gzcat #{@tarball_path} | cpio -id"
chdir
end
end
class Mksh < Formula
homepage 'https://mirbsd.org/mksh.htm'
url 'https://mirbsd.org/MirOS/dist/mir/mksh/mksh-R45.tgz'
version '45.1'
sha256 '90137336a836ad180c6e4f84065b993414aacb2e954afeac506cefb51d432cb8'
def install
system "sh", "./Build.sh", "-c", (ENV.compiler == :clang ? "lto" : "combine")
bin.install 'mksh'
man1.install 'mksh.1'
end
def caveats; <<-EOS.undent
To allow using mksh as a login shell, run this as root:
echo #{HOMEBREW_PREFIX}/bin/mksh >> /etc/shells
Then, any user may run `chsh` to change their shell.
EOS
end
end