vinix-ports / make / PKGBUILD.vile
23 lines · 23 sloc · 964 bytes · 6fd266f8c1f837e31e45cfca8f213a45b00ab866
Raw
1defpkgbuild(make,
2 #:pkgname, "make",
3 #:pkgver, "4.4.1",
4 #:pkgrel, 2,
5 #:pkgdesc, "GNU Make for Vinix",
6 #:arch, [#:x86-64, #:aarch64],
7 #:url, "https://www.gnu.org/software/make/",
8 #:license, "GPL-3.0-or-later",
9 #:depends, ["musl"],
10 #:source, ["https://distfiles.alpinelinux.org/distfiles/v3.21/make-4.4.1.tar.gz"],
11 #:sha256sums, ["dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3"],
12 #:build, fn() {
13 run("env", "CFLAGS=-O2 -std=gnu17", "vinix-configure", "make-4.4.1/configure", "--disable-nls", "--without-guile")
14 run("make")
15 },
16 #:check, fn() {
17 run("vinix-run", "./make", "-f", "/dev/null", "--eval=all: ; @echo Vinix make works", "all")
18 },
19 #:package, fn() {
20 run("make", string-append("DESTDIR=", pkgdir()), "install")
21 run("rm", "-f", string-append(pkgdir(), "/usr/share/info/dir"))
22 run("install", "-Dm644", "make-4.4.1/COPYING", string-append(pkgdir(), "/usr/share/licenses/make/COPYING"))
23 })
24