internal/rosa/package: migrate make

This also introduces the generic helper for unusual build scripts.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-19 19:28:18 +09:00
parent 6e8bfa6c4c
commit 548c96c7ec
5 changed files with 95 additions and 31 deletions

View File

@@ -0,0 +1,26 @@
package make {
description = "a tool which controls the generation of executables and other non-source files";
website = "https://www.gnu.org/software/make";
anitya = 1877;
version* = "4.4.1";
source = remoteTar {
url = "https://ftpmirror.gnu.org/gnu/make/make-"+version+".tar.gz";
checksum = "YS_B07ZcAy9PbaK5_vKGj64SrxO2VMpnMKfc9I0Q9IC1rn0RwOH7802pJoj2Mq4a";
compress = gzip;
};
toyboxEarly = true;
exec = generic {
mktemp = true;
build = `/usr/src/make/configure \
--prefix=/system \
--build="${ROSA_TRIPLE}" \
--disable-dependency-tracking
./build.sh
`;
// test suite wants perl
install = "./make DESTDIR=/work install\n";
};
}