{ "name": "apr", "version": "1.7.6", "summary": "Apache Portable Runtime library (libapr-1) with apr-1-config and its build files", "category": "library", "license": "Apache-2.0", "homepage": "https://apr.apache.org/", "source": { "url": "https://archive.apache.org/dist/apr/apr-1.7.6.tar.bz2", "sha256": "49030d92d2575da735791b496dc322f3ce5cff9494779ba8cc28c7f46c5deb32" }, "watch": {"kind": "index", "url": "https://archive.apache.org/dist/apr/", "regex": "apr-([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)\\.tar\\.bz2", "checksum": "{source}.sha256"}, "deps": [], "env_packages": [], "static": true, "nss": true, "check": "check_lib apr-1 'apr_general.h apr_pools.h apr_strings.h apr_hash.h apr_file_io.h apr_version.h' 'apr_pool_t *p; apr_hash_t *h; apr_file_t *f; const char *d; char b[8] = {0}; apr_size_t n = 0; apr_off_t o = 0; if (apr_initialize() || apr_pool_create(&p, NULL)) return 1; h = apr_hash_make(p); apr_hash_set(h, \"web\", APR_HASH_KEY_STRING, apr_psprintf(p, \"bvs-%d\", 53)); if (strcmp(apr_hash_get(h, \"web\", APR_HASH_KEY_STRING), \"bvs-53\")) return 1; if (apr_temp_dir_get(&d, p) || apr_file_open(&f, apr_pstrcat(p, d, \"/apr.check\", NULL), APR_FOPEN_CREATE | APR_FOPEN_READ | APR_FOPEN_WRITE | APR_FOPEN_TRUNCATE | APR_FOPEN_DELONCLOSE, APR_FPROT_OS_DEFAULT, p)) return 1; if (apr_file_write_full(f, \"bvs-apr\", 7, NULL) || apr_file_seek(f, APR_SET, &o) || apr_file_read_full(f, b, 7, &n) || n != 7 || strcmp(b, \"bvs-apr\")) return 1; apr_file_close(f); apr_pool_destroy(p); apr_terminate(); printf(\"apr %s: a pool, a hash, apr_psprintf and a temporary file written and read back\\n\", apr_version_string())' && [ \"$(bin/apr-1-config --version)\" = 1.7.6 ] && [ -x share/apr-1/build/libtool ]" }