aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-31 02:33:14 +0900
committerOphestra <cat@gensokyo.uk>2026-01-31 02:33:14 +0900
commit1ac8ca7a80527645000f22a193b4278a12a654c0 (patch)
treede5db97dfa7c5a976daeeb3511984de369fbbf96
parentfd8b2fd52229b10092fca7fb520ed33e14f3f50c (diff)
internal/rosa: isolate make implementation
This will come with a helper eventually. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/rosa/gnu.go22
-rw-r--r--internal/rosa/make.go25
2 files changed, 25 insertions, 22 deletions
diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go
index 347ff647..81229ae1 100644
--- a/internal/rosa/gnu.go
+++ b/internal/rosa/gnu.go
@@ -2,28 +2,6 @@ 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 }
-
func (t Toolchain) newM4() pkg.Artifact {
const (
version = "1.4.20"
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 }