{ "name": "libunistring", "version": "1.4.2", "summary": "GNU libunistring: Unicode strings in C (UTF-8/16/32, character widths, properties, normalisation)", "category": "library", "license": "LGPL-3.0-or-later OR GPL-2.0-or-later", "homepage": "https://www.gnu.org/software/libunistring/", "source": { "url": "https://mirrors.kernel.org/gnu/libunistring/libunistring-1.4.2.tar.xz", "sha256": "5b46e74377ed7409c5b75e7a96f95377b095623b689d8522620927964a41499c" }, "watch": {"kind": "index", "url": "https://mirrors.kernel.org/gnu/libunistring/", "regex": "libunistring-([0-9]+(?:\\.[0-9]+)+)\\.tar\\.xz"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "t=$(mktemp -d) && printf '#include \\n#include \\n#include \\nint main(void) { const uint8_t s[] = \"gr\\\\303\\\\274n \\\\346\\\\227\\\\245\"; if (u8_strlen(s) != 9) return 1; if (u8_strwidth(s, \"UTF-8\") != 7) return 2; puts(\"libunistring: 9 bytes, 7 columns\"); return 0; }\\n' > \"$t/t.c\" && $CC $CPPFLAGS $CFLAGS \"$t/t.c\" -o \"$t/t\" $LDFLAGS -lunistring && \"$t/t\" && { [ \"$STATIC\" = 1 ] || LD_TRACE_LOADED_OBJECTS=1 \"$t/t\" | has \"libunistring.so[^ ]* => $PREFIX/lib/\"; }" }