All checks were successful
Test / Create distribution (push) Successful in 1m13s
Test / Sandbox (push) Successful in 4m38s
Test / Hakurei (push) Successful in 6m9s
Test / ShareFS (push) Successful in 6m19s
Test / Sandbox (race detector) (push) Successful in 6m30s
Test / Hakurei (race detector) (push) Successful in 8m21s
Test / Flake checks (push) Successful in 1m57s
Signed-off-by: Ophestra <cat@gensokyo.uk>
54 lines
1.2 KiB
Go
54 lines
1.2 KiB
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newSquashfsTools() (pkg.Artifact, string) {
|
|
const (
|
|
version = "4.7.5"
|
|
checksum = "rF52wLQP-jeAmcD-48wqJcck8ZWRFwkax3T-7snaRf5EBnCQQh0YypMY9lwcivLz"
|
|
)
|
|
return t.NewPackage("squashfs-tools", version, pkg.NewHTTPGetTar(
|
|
nil, "https://github.com/plougher/squashfs-tools/releases/"+
|
|
"download/"+version+"/squashfs-tools-"+version+".tar.gz",
|
|
mustDecode(checksum),
|
|
pkg.TarGzip,
|
|
), &PackageAttr{
|
|
// uses source tree as scratch space
|
|
Writable: true,
|
|
Chmod: true,
|
|
|
|
Env: []string{
|
|
"CONFIG=1",
|
|
"XZ_SUPPORT=0",
|
|
"LZO_SUPPORT=0",
|
|
"LZ4_SUPPORT=0",
|
|
"COMP_DEFAULT=zstd",
|
|
"USE_PREBUILT_MANPAGES=y",
|
|
},
|
|
ScriptEarly: "cd squashfs-tools",
|
|
}, &MakeHelper{
|
|
SkipConfigure: true,
|
|
InPlace: true,
|
|
|
|
SkipCheck: true,
|
|
Install: "make INSTALL_PREFIX=/work/system install",
|
|
},
|
|
Sed,
|
|
|
|
Zstd,
|
|
Gzip,
|
|
Zlib,
|
|
), version
|
|
}
|
|
func init() {
|
|
artifactsM[SquashfsTools] = Metadata{
|
|
f: Toolchain.newSquashfsTools,
|
|
|
|
Name: "squashfs-tools",
|
|
Description: "tools to create and extract Squashfs filesystems",
|
|
Website: "https://github.com/plougher/squashfs-tools",
|
|
|
|
ID: 4879,
|
|
}
|
|
}
|