{ "name": "libsm", "version": "1.2.6", "summary": "libSM: the X Session Management library", "category": "library", "license": "MIT", "homepage": "https://gitlab.freedesktop.org/xorg/lib/libsm", "source": { "url": "https://xorg.freedesktop.org/releases/individual/lib/libSM-1.2.6.tar.xz", "sha256": "be7c0abdb15cbfd29ac62573c1c82e877f9d4047ad15321e7ea97d1e43d835be" }, "watch": {"kind": "index", "url": "https://xorg.freedesktop.org/releases/individual/lib/", "regex": "libSM-([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)\\.tar\\.xz"}, "deps": [ "libice", "xorgproto", "xtrans" ], "env_packages": [], "static": true, "nss": true, "check": "check_lib sm X11/SM/SMlib.h 'char err[256] = \"\", *id = NULL; SmcCallbacks cb; SmcConn c; memset(&cb, 0, sizeof cb); c = SmcOpenConnection(NULL, NULL, SmProtoMajor, SmProtoMinor, 0, &cb, NULL, &id, sizeof err, err); printf(\"libSM: without a session manager: %s\\n\", err); return c != NULL || strstr(err, \"SESSION_MANAGER\") == NULL' " }