32 lines
1.3 KiB
Ruby
32 lines
1.3 KiB
Ruby
class Lrzsz < Formula
|
|
desc "Tools for zmodem/xmodem/ymodem file transfer"
|
|
homepage "https://www.ohse.de/uwe/software/lrzsz.html"
|
|
url "https://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz"
|
|
mirror "https://dl.bintray.com/homebrew/mirror/lrzsz-0.12.20.tar.gz"
|
|
sha256 "c28b36b14bddb014d9e9c97c52459852f97bd405f89113f30bee45ed92728ff1"
|
|
|
|
bottle do
|
|
sha256 "22a62f1fa5fe2efa9f81b0b1ac747b10b47bdf4e3b64c3672a71b87f6a8ae14f" => :mojave
|
|
sha256 "90c283b839ebd3dc24c81192955e8ba697368fb2c2dd641d66ebbf7baf41d0f2" => :high_sierra
|
|
sha256 "1ae883de3fa1c03f926ab1c35c5a8564fc955096ca166a801bfcfdeefa9dc860" => :sierra
|
|
sha256 "578641aa80e798cfea91cd20b1d6f0b6a3190f2656dc81e3ccc24caadcf1c3b2" => :el_capitan
|
|
sha256 "c417cab543224228762023031d93f2b4acfe0f970ed3ea1cc6616893e83cad6b" => :yosemite
|
|
sha256 "2644d211f486bbc5e67094d80454025a53e9dbda37154e9161f6a5908958788c" => :mavericks
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
|
|
system "make"
|
|
|
|
# there's a bug in lrzsz when using custom --prefix
|
|
# must install the binaries manually first
|
|
bin.install "src/lrz", "src/lsz"
|
|
|
|
system "make", "install"
|
|
bin.install_symlink "lrz" => "rz", "lsz" => "sz"
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/lrb --help 2>&1")
|
|
end
|
|
end
|