43 lines
1.5 KiB
Ruby
43 lines
1.5 KiB
Ruby
class Libassuan < Formula
|
|
bottle do
|
|
root_url "https://homebrew.hyprnet/bottles"
|
|
sha256 cellar: :any, arm64_sequoia: "1430611fe9f337d6a7568a12321f125c567ca8d4d2bdcd7ff0717bdcd82a32dc"
|
|
sha256 cellar: :any, arm64_tahoe: "0561b0dae24dbd1bfb2ebcc1b6ca6b4f10cab80d30a73558b8b87ab129415dc5"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "620108c517ecfeb00c843bd34f86b75bf84c1bd92be9b554c86424fad3b99f08"
|
|
end
|
|
desc "Assuan IPC Library"
|
|
homepage "https://www.gnupg.org/related_software/libassuan/"
|
|
url "https://gnupg.org/ftp/gcrypt/libassuan/libassuan-3.0.2.tar.bz2"
|
|
mirror "https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/libassuan/libassuan-3.0.2.tar.bz2"
|
|
sha256 "d2931cdad266e633510f9970e1a2f346055e351bb19f9b78912475b8074c36f6"
|
|
license all_of: [
|
|
"LGPL-2.1-or-later",
|
|
"GPL-3.0-or-later", # assuan.info
|
|
"FSFULLR", # libassuan-config, libassuan.m4
|
|
]
|
|
compatibility_version 1
|
|
|
|
livecheck do
|
|
url "https://gnupg.org/ftp/gcrypt/libassuan/"
|
|
regex(/href=.*?libassuan[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
|
|
|
|
depends_on "libgpg-error"
|
|
|
|
def install
|
|
system "./configure", "--disable-silent-rules",
|
|
"--enable-static",
|
|
*std_configure_args
|
|
system "make", "install"
|
|
|
|
# avoid triggering mandatory rebuilds of software that hard-codes this path
|
|
inreplace bin/"libassuan-config", prefix, opt_prefix
|
|
end
|
|
|
|
test do
|
|
system bin/"libassuan-config", "--version"
|
|
end
|
|
end
|