{ "name": "rdfind", "version": "1.8.0", "summary": "rdfind: finds duplicate files by size and content checksums and reports, hard-links, symlinks or deletes them", "category": "tool", "license": "GPL-2.0-or-later", "homepage": "https://rdfind.pauldreik.se/", "source": { "url": "https://github.com/pauldreik/rdfind/releases/download/releases/1.8.0/rdfind-1.8.0.tar.gz", "sha256": "0a2d0d32002cc2dc0134ee7b649bcc811ecfb2f8d9f672aa476a851152e7af35" }, "watch": {"kind": "github-release", "repo": "pauldreik/rdfind", "tag_regex": "^releases/([0-9]+(?:\\.[0-9]+)+)$"}, "deps": [ "nettle", "xxhash" ], "env_packages": [], "static": true, "nss": false, "check": "t=$(mktemp -d) && mkdir -p \"$t/d/sub\" && bin/rdfind -v | has 'rdfind version 1.8.0' && head -c 200000 /dev/urandom > \"$t/d/a.bin\" && cp \"$t/d/a.bin\" \"$t/d/sub/a-copy.bin\" && cp \"$t/d/a.bin\" \"$t/d/sub/a-copy2.bin\" && head -c 200000 /dev/urandom > \"$t/d/b.bin\" && (cd \"$t\" && \"$PREFIX/bin/rdfind\" -dryrun true -checksum sha256 d > out) && has 'It seems like you have 3 files that are not unique' < \"$t/out\" && (cd \"$t\" && \"$PREFIX/bin/rdfind\" -checksum xxh128 -makehardlinks true d > out2) && [ \"$(stat -c %i \"$t/d/a.bin\")\" = \"$(stat -c %i \"$t/d/sub/a-copy.bin\")\" ] && [ \"$(stat -c %i \"$t/d/a.bin\")\" = \"$(stat -c %i \"$t/d/sub/a-copy2.bin\")\" ] && [ \"$(stat -c %h \"$t/d/b.bin\")\" = 1 ] && has 'DUPTYPE_WITHIN_SAME_TREE' < \"$t/results.txt\" && echo 'rdfind 1.8.0: two copies of a file found by SHA-256 (a dry run), then hard-linked by xxh128; the unique file left alone'" }