Files
hakurei/internal/rosa/xz.go
2026-04-03 10:43:37 +09:00

30 lines
647 B
Go

package rosa
import "hakurei.app/internal/pkg"
func (t Toolchain) newXZ() (pkg.Artifact, string) {
const (
version = "5.8.3"
checksum = "nCdayphPGdIdVoAZ2hR4vYlhDG9LeVKho_i7ealTud4Vxy5o5dWe0VwFlN7utuUL"
)
return t.NewPackage("xz", version, pkg.NewHTTPGetTar(
nil, "https://github.com/tukaani-project/xz/releases/download/"+
"v"+version+"/xz-"+version+".tar.bz2",
mustDecode(checksum),
pkg.TarBzip2,
), nil, (*MakeHelper)(nil),
Diffutils,
), version
}
func init() {
artifactsM[XZ] = Metadata{
f: Toolchain.newXZ,
Name: "xz",
Description: "XZ Utils",
Website: "https://tukaani.org/xz/",
ID: 5277,
}
}