/* * make — GNU make, the build tool that builds everything else. * * First package in the bootstrap chain: it is the host build driver for * every autotools package below it (including itself, bootstrapped by the * seed system's make). * * The test suite is perl-based (tests/run_make_tests.pl), so it only runs * when a perl exists; barebones systems without perl skip it rather than * failing the build. */ package "make" { const version = "4.4.1" const source = "https://ftp.gnu.org/gnu/make/make-${version}.tar.gz" sha256 = "dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3" license = "GPL-3.0-or-later" provides = ["make", "gmake"] prepare { curl -L -O ${source} echo "dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3 make-${version}.tar.gz" | sha256sum -c - tar xf make-${version}.tar.gz --strip-components=1 } build { ./configure --prefix=${prefix} make -j${jobs} } check { if command -v perl >/dev/null 2>&1; then make check; fi } install { make DESTDIR=${destdir} install } }