{ "name": "rhash", "version": "1.4.6", "summary": "RHash: computes and checks hash sums (CRC32, MD5, SHA-1/2/3, BLAKE2/3, BTIH and others), also recursively", "category": "tool", "license": "0BSD", "homepage": "https://rhash.sourceforge.io/", "source": { "url": "https://sourceforge.net/projects/rhash/files/rhash/1.4.6/rhash-1.4.6-src.tar.gz/download", "sha256": "9f6019cfeeae8ace7067ad22da4e4f857bb2cfa6c2deaa2258f55b2227ec937a" }, "watch": {"kind": "index", "url": "https://sourceforge.net/projects/rhash/rss?path=/rhash", "regex": "rhash-([0-9]+(?:\\.[0-9]+)+)-src\\.tar\\.gz"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "bin/rhash --version | first && t=$(mktemp -d) && mkdir \"$t/d\" && seq 1 10000 > \"$t/d/a\" && printf abc > \"$t/d/b\" && [ \"$(bin/rhash --sha256 --simple \"$t/d/a\" | cut -c1-64)\" = \"$(sha256sum \"$t/d/a\" | cut -c1-64)\" ] && bin/rhash --sha3-256 --simple \"$t/d/b\" | has '^3a985da74fe225b2045c172d6bd390bd855f086e3e9d525b46bfe24511431532 ' && bin/rhash -r --sha1 --crc32 -o \"$t/sums\" \"$t/d\" && bin/rhash -c \"$t/sums\" > /dev/null && echo x >> \"$t/d/a\" && ! bin/rhash -c \"$t/sums\" > /dev/null 2>&1 && echo 'rhash: SHA-256 and SHA3-256 known answers; a recursive sum file checked, a changed file found'" }