{ "name": "lzo", "version": "2.10", "summary": "LZO real-time data compression library", "category": "library", "license": "GPL-2.0-or-later", "homepage": "https://www.oberhumer.com/opensource/lzo/", "source": { "url": "https://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz", "sha256": "c0f892943208266f9b6543b3ae308fab6284c5c90e627931446fb49b4221a072" }, "watch": {"kind": "index", "url": "https://www.oberhumer.com/opensource/lzo/download/", "regex": "lzo-([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)\\.tar\\.gz"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "check_lib lzo2 lzo/lzo1x.h 'static unsigned char in[65536], out[70000], back[65536], wrk[LZO1X_1_MEM_COMPRESS]; lzo_uint n = 0, m = sizeof back; int i; for (i = 0; i < (int)sizeof in; i++) in[i] = \"bvs lzo \"[i % 8]; if (lzo_init() != LZO_E_OK || lzo1x_1_compress(in, sizeof in, out, &n, wrk) != LZO_E_OK || lzo1x_decompress_safe(out, n, back, &m, NULL) != LZO_E_OK) return 1; printf(\"lzo %s: 65536 bytes to %lu and back\\n\", lzo_version_string(), (unsigned long)n); return m != sizeof in || memcmp(in, back, m) != 0' " }