homebrew-core/Formula/mfterm.rb

43 lines
1.2 KiB
Ruby

class Mfterm < Formula
desc "Terminal for working with Mifare Classic 1-4k Tags"
homepage "https://github.com/4ZM/mfterm"
url "https://github.com/4ZM/mfterm/releases/download/v1.0.7/mfterm-1.0.7.tar.gz"
sha256 "b6bb74a7ec1f12314dee42973eb5f458055b66b1b41316ae0c5380292b86b248"
license "GPL-3.0"
revision 2
bottle do
cellar :any
sha256 "1c9230a17ab7102f4b171e37a972ade6c7e2d5708102a17ea5494be0b1d1a42e" => :catalina
sha256 "2b4c61222b70b25c523c6083efd85ff53f1187a6afd7d88115f12cb788fa6b13" => :mojave
sha256 "c481733fcc5f8057aac9fa38d5445a88e6faf54a016533bcc72eba2335d9754b" => :high_sierra
end
head do
url "https://github.com/4ZM/mfterm.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
end
depends_on "libnfc"
depends_on "libusb"
depends_on "openssl@1.1"
def install
ENV.prepend "CPPFLAGS", "-I#{Formula["openssl@1.1"].opt_include}"
ENV.prepend "LDFLAGS", "-L#{Formula["openssl@1.1"].opt_lib}"
if build.head?
chmod 0755, "./autogen.sh"
system "./autogen.sh"
end
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make", "install"
end
test do
system "#{bin}/mfterm", "--version"
end
end