package rosa import ( "hakurei.app/internal/pkg" ) // NewGit returns a [pkg.Artifact] containing an installation of git. func (t Toolchain) NewGit() pkg.Artifact { const ( version = "2.52.0" checksum = "uH3J1HAN_c6PfGNJd2OBwW4zo36n71wmkdvityYnrh8Ak0D1IifiAvEWz9Vi9DmS" ) return t.New("git-"+version, []pkg.Artifact{ t.NewMake(), }, nil, nil, ` chmod -R +w /usr/src/git && cd /usr/src/git make configure ./configure --prefix=/system make "-j$(nproc)" all make DESTDIR=/work install `, pkg.Path(AbsUsrSrc.Append("git"), true, pkg.NewHTTPGetTar( nil, "https://www.kernel.org/pub/software/scm/git/"+ "git-"+version+".tar.gz", mustDecode(checksum), pkg.TarGzip, ))) }