{ "name": "lzlib", "version": "1.16", "summary": "lzlib: the lzip compression library (LZMA in the lzip format), for plzip", "category": "library", "license": "BSD-2-Clause", "homepage": "https://www.nongnu.org/lzip/lzlib.html", "source": { "url": "https://download.savannah.gnu.org/releases/lzip/lzlib/lzlib-1.16.tar.gz", "sha256": "203228de911780309dad6813e51541d7ea89469784f01cb661edba080ff1b038" }, "watch": {"kind": "index", "url": "https://download-mirror.savannah.gnu.org/releases/lzip/lzlib/", "regex": "lzlib-([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)\\.tar\\.gz"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "t=$(mktemp -d) && test -f lib/liblz.a && printf '#include \\n#include \\n#include \\n#include \\nint main(void) { static uint8_t in[100000], lz[200000], out[100000]; int i, n = 0, m = 0, r; LZ_Encoder *e; LZ_Decoder *d; for (i = 0; i < (int)sizeof in; i++) in[i] = (uint8_t)(i %% 251 ^ i / 1000); e = LZ_compress_open(1 << 20, 36, INT64_MAX); LZ_compress_write(e, in, sizeof in); LZ_compress_finish(e); while ((r = LZ_compress_read(e, lz + n, sizeof lz - n)) > 0) n += r; LZ_compress_close(e); d = LZ_decompress_open(); LZ_decompress_write(d, lz, n); LZ_decompress_finish(d); while ((r = LZ_decompress_read(d, out + m, sizeof out - m)) > 0) m += r; LZ_decompress_close(d); printf(\"lzlib %%s: %%d bytes to %%d and back\\\\n\", LZ_version(), (int)sizeof in, n); return m != (int)sizeof in || memcmp(in, out, m) || n >= m; }\\n' > \"$t/t.c\" && $CC $CPPFLAGS $CFLAGS \"$t/t.c\" -o \"$t/t\" $LDFLAGS -llz && \"$t/t\"" }