package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newRdfind() (pkg.Artifact, string) {
	const (
		version  = "1.8.0"
		checksum = "PoaeJ2WIG6yyfe5VAYZlOdAQiR3mb3WhAUMj2ziTCx_IIEal4640HMJUb4SzU9U3"
	)
	return t.NewPackage("rdfind", version, newTar(
		"https://rdfind.pauldreik.se/rdfind-"+version+".tar.gz",
		checksum,
		pkg.TarGzip,
	), nil, &MakeHelper{
		// test suite hard codes /bin/echo
		ScriptCheckEarly: `
ln -s ../system/bin/toybox /bin/echo
`,
	},
		Nettle,
	), version
}
func init() {
	artifactsM[Rdfind] = Metadata{
		f: Toolchain.newRdfind,

		Name:        "rdfind",
		Description: "a program that finds duplicate files",
		Website:     "https://rdfind.pauldreik.se/",

		Dependencies: P{
			Nettle,
		},

		ID: 231641,
	}
}
