{ "name": "glib", "version": "2.78.6", "summary": "GLib: GNOME core library (data types, main loop, GIO)", "category": "library", "license": "LGPL-2.1-or-later", "homepage": "https://gitlab.gnome.org/GNOME/glib", "source": { "url": "https://download.gnome.org/sources/glib/2.78/glib-2.78.6.tar.xz", "sha256": "244854654dd82c7ebcb2f8e246156d2a05eb9cd1ad07ed7a779659b4602c9fae" }, "watch": {"kind": "index", "url": "https://download.gnome.org/sources/glib/cache.json", "regex": "\"(2\\.[0-9]*[02468]\\.[0-9]+)\": \\{", "pin": "2.78", "checksum": "https://download.gnome.org/sources/glib/{major}.{minor}/glib-{version}.sha256sum"}, "deps": [ "libffi", "pcre2", "zlib" ], "env_packages": [], "static": true, "nss": true, "check": "check_lib glib-2.0 glib.h 'GHashTable *h = g_hash_table_new(g_str_hash, g_str_equal); gchar *s = g_strdup_printf(\"%d-%s\", 42, \"bvs\"); g_hash_table_insert(h, \"k\", s); GRegex *re = g_regex_new(\"^([0-9]+)-\", 0, 0, NULL); GMatchInfo *mi = NULL; gboolean ok = g_regex_match(re, g_hash_table_lookup(h, \"k\"), 0, &mi); gchar *n = ok ? g_match_info_fetch(mi, 1) : NULL; printf(\"glib %u.%u.%u: regex took %s from %s\\n\", glib_major_version, glib_minor_version, glib_micro_version, n ? n : \"?\", s); return !n || strcmp(n, \"42\") != 0' " }