{ "name": "libconfuse", "version": "3.4", "summary": "libConfuse: a configuration file parser library", "category": "library", "license": "ISC", "homepage": "https://github.com/libconfuse/libconfuse", "source": { "url": "https://github.com/libconfuse/libconfuse/releases/download/v3.4/confuse-3.4.tar.xz", "sha256": "36bfa3928f9c323914c7c8317e8722cb22f41db69d7c9d4c24b4689fa955445d" }, "watch": {"kind": "github-release", "repo": "libconfuse/libconfuse", "tag_regex": "^v([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)$"}, "deps": [], "env_packages": [], "static": true, "nss": true, "check": "check_lib libconfuse confuse.h 'cfg_opt_t o[] = { CFG_INT(\"n\", 0, CFGF_NONE), CFG_STR(\"s\", \"x\", CFGF_NONE), CFG_END() }; cfg_t *c = cfg_init(o, CFGF_NONE); if (cfg_parse_buf(c, \"n = 42\\ns = \\\"bvs\\\"\\n\") != CFG_SUCCESS) return 1; printf(\"libconfuse: n=%ld s=%s\\n\", cfg_getint(c, \"n\"), cfg_getstr(c, \"s\")); return cfg_getint(c, \"n\") != 42 || strcmp(cfg_getstr(c, \"s\"), \"bvs\") != 0' " }