diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go index 347ff64..81229ae 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 0000000..61763be --- /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 }