diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-31 02:33:14 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-31 02:33:14 +0900 |
| commit | 1ac8ca7a80527645000f22a193b4278a12a654c0 (patch) | |
| tree | de5db97dfa7c5a976daeeb3511984de369fbbf96 /internal/rosa/make.go | |
| parent | fd8b2fd52229b10092fca7fb520ed33e14f3f50c (diff) | |
internal/rosa: isolate make implementation
This will come with a helper eventually.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/make.go')
| -rw-r--r-- | internal/rosa/make.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/internal/rosa/make.go b/internal/rosa/make.go new file mode 100644 index 00000000..61763be3 --- /dev/null +++ b/internal/rosa/make.go @@ -0,0 +1,25 @@ +package rosa + +import "hakurei.app/internal/pkg" + +func (t Toolchain) newMake() pkg.Artifact { + const ( + version = "4.4.1" + checksum = "YS_B07ZcAy9PbaK5_vKGj64SrxO2VMpnMKfc9I0Q9IC1rn0RwOH7802pJoj2Mq4a" + ) + return t.New("make-"+version, TEarly, nil, nil, nil, ` +cd "$(mktemp -d)" +/usr/src/make/configure \ + --prefix=/system \ + --build="${ROSA_TRIPLE}" \ + --disable-dependency-tracking +./build.sh +./make DESTDIR=/work install check +`, pkg.Path(AbsUsrSrc.Append("make"), false, pkg.NewHTTPGetTar( + nil, + "https://ftp.gnu.org/gnu/make/make-"+version+".tar.gz", + mustDecode(checksum), + pkg.TarGzip, + ))) +} +func init() { artifactsF[Make] = Toolchain.newMake } |
