Validate the staged terminal database with target infocmp
@@ -3,23 +3,16 @@
33defpkgbuild(ncurses,
44 #:pkgname, "ncurses",
55 #:pkgver, "6.5_p20241006",
6- #:pkgrel, 1,
6+ #:pkgrel, 2,
77 #:pkgdesc, "Wide-character terminal libraries, tools and terminfo database",
8- #:arch, [#:x86-64],
8+ #:arch, [#:x86-64, #:aarch64],
99 #:license, "X11",
1010 #:url, "https://invisible-island.net/ncurses/",
1111 #:depends, ["musl"],
1212 #:source, ["https://distfiles.alpinelinux.org/distfiles/v3.21/ncurses-6.5-20241006.tgz"],
1313 #:sha256sums, ["fefd7f516ba7a236239d3213f698fa9736c394bece176671411e94dac83eadfd"],
1414 #:build, fn() {
15- root := get-environment-variable("VINIX_SYSROOT")
16- run("test", "-f", string-append(root, "/usr/lib/musl-gcc-sysroot.specs"))
17- run("env", "-u", "CPATH", "-u", "C_INCLUDE_PATH", "-u", "LIBRARY_PATH",
18- "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_SYSROOT_DIR=", root),
19- string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig"),
20- string-append("CC=gcc --sysroot=", root, " -specs=", root, "/usr/lib/musl-gcc-sysroot.specs"),
21- "CFLAGS=-O2 -D_GNU_SOURCE", "ncurses-6.5-20241006/configure",
22- "--build=x86_64-pc-linux-gnu", "--host=x86_64-linux-musl", "--prefix=/usr",
15+ run("env", "CFLAGS=-O2 -D_GNU_SOURCE", "vinix-configure", "ncurses-6.5-20241006/configure",
2316 "--mandir=/usr/share/man", "--without-ada", "--without-tests", "--without-cxx-binding",
2417 "--without-cxx", "--without-debug", "--disable-termcap", "--disable-root-access",
2518 "--disable-rpath-hack", "--disable-setuid-environ", "--with-build-cc=gcc",
@@ -43,5 +36,7 @@ defpkgbuild(ncurses,
4336 run("ln", "-sf", "ncursesw.pc", string-append(pc, name, ".pc"))
4437 }, list("curses", "tic", "tinfo"))
4538 run("test", "-s", string-append(pkgdir(), "/usr/share/terminfo/x/xterm-256color"))
39+ run("env", string-append("TERMINFO=", pkgdir(), "/usr/share/terminfo"), "vinix-run",
40+ "--library-path", lib, string-append(pkgdir(), "/usr/bin/infocmp"), "xterm-256color")
4641 run("install", "-Dm644", "ncurses-6.5-20241006/COPYING", string-append(pkgdir(), "/usr/share/licenses/ncurses/COPYING"))
4742 })