{ "name": "libx11", "version": "1.8.13", "summary": "libX11: the core X11 client library", "category": "library", "license": "MIT", "homepage": "https://gitlab.freedesktop.org/xorg/lib/libx11", "source": { "url": "https://xorg.freedesktop.org/releases/individual/lib/libX11-1.8.13.tar.xz", "sha256": "69606f485c2c07c14ef64f75b7bb326d48587af33795d9ab3e607c0b5f94f11c" }, "watch": {"kind": "index", "url": "https://xorg.freedesktop.org/releases/individual/lib/", "regex": "libX11-([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)\\.tar\\.xz"}, "deps": [ "xorgproto", "xtrans", "libxcb" ], "env_packages": [], "static": true, "nss": true, "check": "check_lib x11 \"X11/Xlib.h X11/Xresource.h\" 'char *type = NULL; XrmValue v; XrmDatabase db; XrmInitialize(); db = XrmGetStringDatabase(\"bvs.color: blue\\n*size: 42\\n\"); if (!XrmGetResource(db, \"bvs.color\", \"Bvs.Color\", &type, &v) || strcmp(v.addr, \"blue\")) return 1; if (!XrmGetResource(db, \"bvs.size\", \"Bvs.Size\", &type, &v) || strcmp(v.addr, \"42\")) return 1; printf(\"libX11: resource database answers blue and 42; no display: %s\\n\", XOpenDisplay(\"bvs-nohost.invalid:7\") ? \"?\" : \"none\"); return 0' " }