homebrew-core/Formula/ykneomgr.rb

47 lines
1.8 KiB
Ruby

class Ykneomgr < Formula
desc "CLI and C library to interact with the CCID-part of the YubiKey NEO"
homepage "https://developers.yubico.com/libykneomgr/"
url "https://developers.yubico.com/libykneomgr/Releases/libykneomgr-0.1.8.tar.gz"
sha256 "2749ef299a1772818e63c0ff5276f18f1694f9de2137176a087902403e5df889"
license "LGPL-3.0-or-later"
revision 2
bottle do
rebuild 1
sha256 cellar: :any, arm64_monterey: "b1a8db16006b7c66fd5fa1ecd61c5af791be4e7be61b054bfe268b1bb47094e0"
sha256 cellar: :any, arm64_big_sur: "75e8cb3042d639b8271057b9d3e77c2786e66527a8c8602709dff4624b06d134"
sha256 cellar: :any, monterey: "371a8e8a46f71521fcc534c60fff6f9e4cc787d17a03344c37c325d284c14ad2"
sha256 cellar: :any, big_sur: "d08813317ba58b25a12d90485c20e372922bde6bda948a4b4979eccb07374e5f"
sha256 cellar: :any, catalina: "583b882ed5705cfbde73f815689c7fcf70aec84b42a8de606dd847f99afc93b7"
sha256 cellar: :any, mojave: "0fee721a06b166425760bdc5b65349f374ac6512ce09404cdc2c4d82f621022e"
end
head do
url "https://github.com/Yubico/libykneomgr.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "gengetopt" => :build
depends_on "libtool" => :build
end
# Deprecated in favor of YubiKey Manager (ykman)
disable! date: "2022-07-31", because: :deprecated_upstream
depends_on "help2man" => :build
depends_on "pkg-config" => :build
depends_on "libzip"
def install
system "make", "autoreconf" if build.head?
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "check"
system "make", "install"
end
test do
assert_match version.to_s, shell_output("#{bin}/ykneomgr --version")
end
end