Files

47 lines
1.3 KiB
Ruby

class Libxext < Formula
bottle do
root_url "https://homebrew.hyprnet/bottles"
sha256 cellar: :any, arm64_sequoia: "71225436c92940977248a28433951e8e26732d3a9eed954ce1999a770f93f98e"
sha256 cellar: :any, arm64_tahoe: "7cf2c8903d82f28e0e854c8d6d3dff46ea98c5512724e5349af40f1edca88e9c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "7bc771ee68f57189ea941e83f2f5ff18ac94878ae35c30aed8868a906834d148"
end
desc "X.Org: Library for common extensions to the X11 protocol"
homepage "https://www.x.org/"
url "https://xorg.freedesktop.org/archive/individual/lib/libXext-1.3.7.tar.gz"
sha256 "6564608dc3b816b0cfddf0c7ddc62bc579055dd70b2f28113a618df2acb64189"
license "MIT"
compatibility_version 1
depends_on "pkgconf" => :build
depends_on "libx11"
depends_on "xorgproto"
def install
args = %W[
--sysconfdir=#{etc}
--localstatedir=#{var}
--disable-silent-rules
--enable-specs=no
]
system "./configure", *args, *std_configure_args
system "make"
system "make", "install"
end
test do
(testpath/"test.c").write <<~C
#include "X11/extensions/shape.h"
int main(int argc, char* argv[]) {
XShapeEvent event;
return 0;
}
C
system ENV.cc, "test.c"
assert_equal 0, $CHILD_STATUS.exitstatus
end
end