homebrew-core/Formula/libksba.rb

36 lines
1.1 KiB
Ruby

class Libksba < Formula
desc "X.509 and CMS library"
homepage "https://www.gnupg.org/related_software/libksba/"
url "https://gnupg.org/ftp/gcrypt/libksba/libksba-1.5.0.tar.bz2"
sha256 "ae4af129216b2d7fdea0b5bf2a788cd458a79c983bb09a43f4d525cc87aba0ba"
license "GPL-2.0"
livecheck do
url "https://gnupg.org/ftp/gcrypt/libksba/"
regex(/href=.*?libksba[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
cellar :any
sha256 "688def210a738526e8cebfe8e556c9bfe4b164887c5918463c37d91b3f694945" => :big_sur
sha256 "9a305a28ce4d1635c142ea8e02ce5e6ef17007901223fbdbe3572f06398490f3" => :catalina
sha256 "a309359bb9d744de1065e91feefdd06f520a6e72a8d266bc256d59fbe23b70d5" => :mojave
end
depends_on "libgpg-error"
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
# avoid triggering mandatory rebuilds of software that hard-codes this path
inreplace bin/"ksba-config", prefix, opt_prefix
end
test do
system "#{bin}/ksba-config", "--libs"
end
end