Restore the release gmake command and rebuild zlib for ARM64 Vinix pages
@@ -1,12 +1,17 @@
1+selected := get-environment-variable("VPAC_TARGET_ARCH")
2+arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" }
3+arm := string=?(arch, "aarch64")
4+musl := if arm { "musl>=1.2.6-4" } else { "musl" }
5+
16defpkgbuild(make,
27 #:pkgname, "make",
38 #:pkgver, "4.4.1",
4- #:pkgrel, 2,
9+ #:pkgrel, 3,
510 #:pkgdesc, "GNU Make for Vinix",
611 #:arch, [#:x86-64, #:aarch64],
712 #:url, "https://www.gnu.org/software/make/",
813 #:license, "GPL-3.0-or-later",
9- #:depends, ["musl"],
14+ #:depends, [musl],
1015 #:source, ["https://distfiles.alpinelinux.org/distfiles/v3.21/make-4.4.1.tar.gz"],
1116 #:sha256sums, ["dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3"],
1217 #:build, fn() {
@@ -18,6 +23,9 @@ defpkgbuild(make,
1823 },
1924 #:package, fn() {
2025 run("make", string-append("DESTDIR=", pkgdir()), "install")
26+ run("ln", "-s", "make", string-append(pkgdir(), "/usr/bin/gmake"))
27+ run("vinix-run", string-append(pkgdir(), "/usr/bin/gmake"), "-f", "/dev/null",
28+ "--eval=all: ; @echo Vinix gmake works", "all")
2129 run("rm", "-f", string-append(pkgdir(), "/usr/share/info/dir"))
2230 run("install", "-Dm644", "make-4.4.1/COPYING", string-append(pkgdir(), "/usr/share/licenses/make/COPYING"))
2331 })
@@ -1,17 +1,19 @@
11selected := get-environment-variable("VPAC_TARGET_ARCH")
22arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" }
3+arm := string=?(arch, "aarch64")
4+musl := if arm { "musl>=1.2.6-4" } else { "musl" }
35cross := get-environment-variable("CROSS_COMPILE")
46prefix := if string?(cross) { cross } else { "" }
57
68defpkgbuild(zlib,
79 #:pkgname, "zlib",
810 #:pkgver, "1.4",
9- #:pkgrel, 2,
11+ #:pkgrel, if arm { 3 } else { 2 },
1012 #:pkgdesc, "DEFLATE compression library and development headers",
1113 #:arch, [#:x86-64, #:aarch64],
1214 #:license, "Zlib",
1315 #:url, "https://zlib.net/",
14- #:depends, ["musl"],
16+ #:depends, [musl],
1517 #:source, ["https://zlib.net/fossils/zlib-1.4.tar.gz"],
1618 #:sha256sums, ["02dd159783677a749c04adbdd02b55b8a2bcc7e054f51b76b549199a916ad584"],
1719