Files
hakurei/internal/rosa/squashfs.go
Ophestra 916093770a
Some checks failed
Test / Create distribution (push) Failing after 50s
Test / ShareFS (push) Failing after 55s
Test / Hakurei (push) Failing after 1m11s
Test / Sandbox (race detector) (push) Failing after 1m11s
Test / Sandbox (push) Failing after 1m21s
Test / Hakurei (race detector) (push) Failing after 1m34s
Test / Flake checks (push) Has been skipped
internal/rosa: key metadata by string
For upcoming azalea integration. The API is quite ugly right now to ease migration.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-05-17 15:05:52 +09:00

61 lines
1.2 KiB
Go

package rosa
import "hakurei.app/internal/pkg"
func (t Toolchain) newSquashfsTools(s *S) (pkg.Artifact, string) {
const (
version = "4.7.5"
checksum = "rF52wLQP-jeAmcD-48wqJcck8ZWRFwkax3T-7snaRf5EBnCQQh0YypMY9lwcivLz"
)
return s.NewPackage(t, "squashfs-tools", version, newFromGitHubRelease(
"plougher/squashfs-tools",
version,
"squashfs-tools-"+version+".tar.gz",
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() {
native.MustRegister(&Artifact{
f: Toolchain.newSquashfsTools,
Name: "squashfs-tools",
Description: "tools to create and extract Squashfs filesystems",
Website: "https://github.com/plougher/squashfs-tools",
Dependencies: P{
Zstd,
Gzip,
Zlib,
},
ID: 4879,
})
}