Files

46 lines
1.3 KiB
Ruby

class Libxscrnsaver < Formula
bottle do
root_url "https://homebrew.hyprnet/bottles"
sha256 cellar: :any, arm64_sequoia: "464b8c95cf2d758476e47dc6f774c6504b84b0265cd458d8fd33619f1386721c"
sha256 cellar: :any, arm64_tahoe: "6097790285805d792860cbcf0bb663c76b58d51a57d505346b179e52e2f7ce7c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "592204a7c4aa929e51c550213e52af404a62e1e83075d48daa93e8efb9a88e36"
end
desc "X.Org: X11 Screen Saver extension client library"
homepage "https://www.x.org/"
url "https://xorg.freedesktop.org/archive/individual/lib/libXScrnSaver-1.2.5.tar.xz"
sha256 "5057365f847253e0e275871441e10ff7846c8322a5d88e1e187d326de1cd8d00"
license "MIT"
depends_on "pkgconf" => :build
depends_on "libx11"
depends_on "libxext"
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/extensions/scrnsaver.h"
int main(int argc, char* argv[]) {
XScreenSaverNotifyEvent event;
return 0;
}
C
system ENV.cc, "test.c"
assert_equal 0, $CHILD_STATUS.exitstatus
end
end