package rosa import "hakurei.app/internal/pkg" func (t Toolchain) newRsync() pkg.Artifact { const ( version = "3.4.1" checksum = "VBlTsBWd9z3r2-ex7GkWeWxkUc5OrlgDzikAC0pK7ufTjAJ0MbmC_N04oSVTGPiv" ) return t.New("rsync-"+version, TEarly, []pkg.Artifact{ t.Load(Make), t.Load(Gawk), }, nil, nil, ` cd "$(mktemp -d)" /usr/src/rsync/configure --prefix=/system \ --build="${ROSA_TRIPLE}" \ --disable-openssl \ --disable-xxhash \ --disable-zstd \ --disable-lz4 make "-j${nproc}" make DESTDIR=/work install `, pkg.Path(AbsUsrSrc.Append("rsync"), false, pkg.NewHTTPGetTar( nil, "https://download.samba.org/pub/rsync/src/rsync-"+version+".tar.gz", mustDecode(checksum), pkg.TarGzip, ))) } func init() { artifactsF[Rsync] = Toolchain.newRsync }