homebrew-core/Formula/ncftp.rb

46 lines
1.8 KiB
Ruby

class Ncftp < Formula
desc "FTP client with an advanced user interface"
homepage "https://www.ncftp.com/"
url "https://mirrorservice.org/sites/ftp.ncftp.com/ncftp/ncftp-3.2.6-src.tar.gz"
mirror "https://fossies.org/linux/misc/ncftp-3.2.6-src.tar.gz"
sha256 "129e5954850290da98af012559e6743de193de0012e972ff939df9b604f81c23"
license "ClArtistic"
livecheck do
url "https://www.ncftp.com/download/"
regex(/href=.*?ncftp[._-]v?(\d+(?:\.\d+)+)(?:-src)?\.t/i)
end
bottle do
rebuild 1
sha256 arm64_ventura: "f35284c1451cccd59675fff89f8a285aabfa287346928f1a3009db65074ec405"
sha256 arm64_monterey: "0d10c2e5a5cd32d495bb7cf1b16de23c8335658097ee209397170ccbec21e164"
sha256 arm64_big_sur: "1fc3f5a43b5e4e23f2bac0046acaf8f746d5d07e0eb6cf60d593830fb3acbf13"
sha256 ventura: "e83dbafd6d2cc7885ac986aa7d1452fa88fd73f6947dd7d6c8ef94c1dd0e4de0"
sha256 monterey: "f8a7be7e00a9ed10c22c5396e8c67f1f8697cfe117c003a4e5a62f3a9f13f33e"
sha256 big_sur: "be10854d86393b58f542fbe778bf650c90a9635fbd14eff8149459838c4455c6"
sha256 catalina: "c5759f94e328047e35a3f22c63ecf7bf7051edbc68432b3eb9db6c61d8f84bb2"
sha256 mojave: "381492aa09e004859600ffc441ebd4dfe1c75685099debf5a7c283c15785a26c"
sha256 x86_64_linux: "4e3ce2c25f180954ba28f3b4c630ede2dd4c798df59f5f5aa13fbfa2cd4f6acc"
end
uses_from_macos "ncurses"
def install
# Work around ./configure issues with Xcode 12:
ENV.append "CFLAGS", "-Wno-implicit-function-declaration"
system "./configure", "--disable-universal",
"--disable-precomp",
"--with-ncurses",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make"
system "make", "install"
end
test do
system "#{bin}/ncftp", "-F"
end
end