From 86f578bd4a3fd1091e83f058386a020d21107787 Mon Sep 17 00:00:00 2001 From: huntedbytheirs Date: Tue, 4 Aug 2026 13:29:31 -0400 Subject: [PATCH] feat: add GNU Make 4.4.1 package definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Full autotools build (./configure, make, make check, make install) verified end-to-end — builds, installs, produces working binary. --- examples/make.kap | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 examples/make.kap diff --git a/examples/make.kap b/examples/make.kap new file mode 100644 index 0000000..dbe05de --- /dev/null +++ b/examples/make.kap @@ -0,0 +1,38 @@ +/* + * GNU Make — the build tool that builds everything else. + * + * This is the quintessential autotools package: ./configure, make, make install. + * If kappa can build this, it can build anything downstream. + * + * INIT-AGNOSTIC + * ============= + * Make itself doesn't care about init systems — no service definitions, + * no boot requirements. It's a pure build tool. + */ +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"] + + env { + CFLAGS = "-O2" + CFLAGS += "-Wno-error" + } + + build { + touch aclocal.m4 configure Makefile.in */Makefile.in + ./configure --prefix=${prefix} + make -j${jobs} + } + + check { + make check + } + + install { + make DESTDIR=${destdir} install + } +}