46 lines
1.3 KiB
Ruby
46 lines
1.3 KiB
Ruby
class Libxau < Formula
|
|
bottle do
|
|
root_url "https://homebrew.mirror.ygg/bottles"
|
|
sha256 cellar: :any, arm64_sequoia: "e8a5fedbd9e5c49f10006171decc5b1e56c48fbd4267e7668f813e47c0da984f"
|
|
sha256 cellar: :any, arm64_tahoe: "503040606c5d29dd415f2c8dcba7e181d259e4cdff02d1d8bde4e9ea5244765a"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "eaab2aad3bf7abb8cf6f1b164cd6648731814a71b1b3cb1141055d48fa07914d"
|
|
end
|
|
desc "X.Org: A Sample Authorization Protocol for X"
|
|
homepage "https://www.x.org/"
|
|
url "https://xorg.freedesktop.org/archive/individual/lib/libXau-1.0.12.tar.xz"
|
|
sha256 "74d0e4dfa3d39ad8939e99bda37f5967aba528211076828464d2777d477fc0fb"
|
|
license "MIT"
|
|
compatibility_version 1
|
|
|
|
|
|
|
|
depends_on "pkgconf" => :build
|
|
depends_on "util-macros" => :build
|
|
depends_on "xorgproto"
|
|
|
|
def install
|
|
args = %W[
|
|
--sysconfdir=#{etc}
|
|
--localstatedir=#{var}
|
|
--disable-silent-rules
|
|
]
|
|
|
|
system "./configure", *args, *std_configure_args
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.c").write <<~C
|
|
#include "X11/Xauth.h"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
Xauth auth;
|
|
return 0;
|
|
}
|
|
C
|
|
system ENV.cc, "test.c"
|
|
assert_equal 0, $CHILD_STATUS.exitstatus
|
|
end
|
|
end
|