All checks were successful
Test / Create distribution (push) Successful in 1m0s
Test / Sandbox (push) Successful in 2m52s
Test / Hakurei (push) Successful in 5m6s
Test / ShareFS (push) Successful in 5m15s
Test / Hpkg (push) Successful in 5m55s
Test / Sandbox (race detector) (push) Successful in 6m15s
Test / Hakurei (race detector) (push) Successful in 7m16s
Test / Flake checks (push) Successful in 2m35s
This is a variant of toybox with unfinished tools enabled, for artifacts that will end up in a dependency loop without them. Signed-off-by: Ophestra <cat@gensokyo.uk>
31 lines
750 B
Go
31 lines
750 B
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newXZ() pkg.Artifact {
|
|
const (
|
|
version = "5.8.2"
|
|
checksum = "rXT-XCp9R2q6cXqJ5qenp0cmGPfiENQiU3BWtUVeVgArfRmSsISeUJgvCR3zI0a0"
|
|
)
|
|
return t.New("xz-"+version, 0, []pkg.Artifact{
|
|
t.Load(Make),
|
|
t.Load(Gawk),
|
|
t.Load(Coreutils),
|
|
t.Load(Diffutils),
|
|
}, nil, nil, `
|
|
cd "$(mktemp -d)"
|
|
/usr/src/xz/configure \
|
|
--prefix=/system \
|
|
--build="${ROSA_TRIPLE}"
|
|
make "-j$(nproc)" check
|
|
make DESTDIR=/work install
|
|
`, pkg.Path(AbsUsrSrc.Append("xz"), false, pkg.NewHTTPGetTar(
|
|
nil,
|
|
"https://github.com/tukaani-project/xz/releases/download/"+
|
|
"v"+version+"/xz-"+version+".tar.bz2",
|
|
mustDecode(checksum),
|
|
pkg.TarBzip2,
|
|
)))
|
|
}
|
|
func init() { artifactsF[XZ] = Toolchain.newXZ }
|