{ "name": "libzen", "version": "0.4.41", "summary": "ZenLib: MediaArea's C++ helper library (strings, files, threads) under MediaInfoLib", "category": "library", "license": "Zlib", "homepage": "https://mediaarea.net/en/MediaInfo", "source": { "url": "https://mediaarea.net/download/source/libzen/0.4.41/libzen_0.4.41.tar.xz", "sha256": "933bad3b7ecd29dc6bdc88a83645c83dfd098c15b0b90d6177a37fa1536704e8" }, "watch": {"kind": "index", "url": "https://mediaarea.net/download/source/libzen/", "regex": "href=\"([0-9]+(?:\\.[0-9]+)+)/\""}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "t=$(mktemp -d) && test -f lib/libzen.a && ! ls lib/libzen.so* > /dev/null 2>&1 && $PKG_CONFIG --modversion libzen | has -x 0.4.41 && printf '#include \\n#include \\n#include \\nusing namespace ZenLib;\\nint main(int c, char **v) { Ztring n; n.From_Number((int64u)4242); n += __T(\"-bvs\"); File f; if (!f.Create(Ztring().From_Local(v[1]))) return 2; f.Write(n); f.Close(); if (File::Size_Get(Ztring().From_Local(v[1])) != 8) return 3; Ztring h; h.From_Number((int8u)255, 16); std::cout << n.To_Local() << \" \" << h.To_Local() << std::endl; return 0; }\\n' > \"$t/t.cc\" && ${CC%gcc}g++ $CPPFLAGS $CFLAGS $($PKG_CONFIG --cflags libzen) \"$t/t.cc\" -o \"$t/t\" $LDFLAGS $($PKG_CONFIG --libs libzen) && \"$t/t\" \"$t/out\" > \"$t/o\" && has -x '4242-bvs FF' < \"$t/o\" && has -x 4242-bvs < \"$t/out\"; r=$?; rm -rf -- \"${t:?}\"; [ $r = 0 ] && echo 'libzen 0.4.41: a static archive; a number written to a file through ZenLib::File and read back by size, hex formatting'; exit $r" }