package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newRsync() (pkg.Artifact, string) {
	const (
		version  = "3.4.2"
		checksum = "t7PxS4WHXzefLMKKc_3hJgxUmlGG6KgHMZ8i4DZvCQAUAizxbclNKwfLyOHyq5BX"
	)
	return t.NewPackage("rsync", version, newTar(
		"https://download.samba.org/pub/rsync/src/"+
			"rsync-"+version+".tar.gz",
		checksum,
		pkg.TarGzip,
	), &PackageAttr{
		Flag: TEarly,
	}, &MakeHelper{
		Configure: []KV{
			{"disable-openssl"},
			{"disable-xxhash"},
			{"disable-zstd"},
			{"disable-lz4"},
		},

		// circular dependency
		SkipCheck: true,
	}), version
}
func init() {
	artifactsM[Rsync] = Metadata{
		f: Toolchain.newRsync,

		Name:        "rsync",
		Description: "an open source utility that provides fast incremental file transfer",
		Website:     "https://rsync.samba.org/",

		ID: 4217,
	}
}
