From e9bb9fe0c35321b112c4dbf51f5f26b6973ddabb Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 14 Oct 2020 23:29:43 +0800 Subject: [PATCH] add libxau --- packages/l/libxau/xmake.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/l/libxau/xmake.lua diff --git a/packages/l/libxau/xmake.lua b/packages/l/libxau/xmake.lua new file mode 100644 index 000000000..b2e5b407a --- /dev/null +++ b/packages/l/libxau/xmake.lua @@ -0,0 +1,21 @@ +package("libxau") + + set_homepage("https://www.x.org/") + set_description("X.Org: A Sample Authorization Protocol for X") + + set_urls("https://www.x.org/archive/individual/lib/libXau-$(version).tar.bz2") + add_versions("1.0.9", "ccf8cbf0dbf676faa2ea0a6d64bcc3b6746064722b606c8c52917ed00dcb73ec") + + add_deps("autoconf", "util-macros", "xorgproto") + + on_install("macosx", "linux", function (package) + local configs = {"--sysconfdir=" .. package:installdir("etc"), + "--localstatedir=" .. package:installdir("var"), + "--disable-dependency-tracking", + "--disable-silent-rules"} + import("package.tools.autoconf").install(package, configs) + end) + + on_test(function (package) + assert(package:has_ctypes("Xauth", {includes = "X11/Xauth.h"})) + end)