forked from security/hakurei
For creating the stage0 tarball. Might be replaced by a custom artifact at some point. Signed-off-by: Ophestra <cat@gensokyo.uk>
23 lines
585 B
Go
23 lines
585 B
Go
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.New("bzip2-"+version, 0, []pkg.Artifact{
|
|
t.Load(Make),
|
|
}, nil, nil, `
|
|
cd /usr/src/bzip2
|
|
make CC=cc
|
|
make PREFIX=/work/system install
|
|
`, pkg.Path(AbsUsrSrc.Append("bzip2"), true, pkg.NewHTTPGetTar(
|
|
nil, "https://sourceware.org/pub/bzip2/bzip2-"+version+".tar.gz",
|
|
mustDecode(checksum),
|
|
pkg.TarGzip,
|
|
)))
|
|
}
|
|
func init() { artifactsF[Bzip2] = Toolchain.newBzip2 }
|