package rosa import "hakurei.app/internal/pkg" func (t Toolchain) newBzip2() pkg.Artifact { const ( version = "1.0.8" checksum = "cTLykcco7boom-s05H1JVsQi1AtChYL84nXkg_92Dm1Xt94Ob_qlMg_-NSguIK-c" ) return t.NewViaMake("bzip2", version, pkg.NewHTTPGetTar( nil, "https://sourceware.org/pub/bzip2/bzip2-"+version+".tar.gz", mustDecode(checksum), pkg.TarGzip, ), &MakeAttr{ Writable: true, SkipConfigure: true, SkipCheck: true, InPlace: true, ScriptEarly: "cd /usr/src/bzip2", Make: []string{ "CC=cc", }, ScriptInstall: "make PREFIX=/work/system install", }) } func init() { artifactsF[Bzip2] = Toolchain.newBzip2 }