From d56dd35cc6a2594d4987ef21cdbd46f09f4e0b6f Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 01:02:03 +0100 Subject: [PATCH] Validate the staged terminal database with target infocmp --- ncurses/PKGBUILD.vile | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/ncurses/PKGBUILD.vile b/ncurses/PKGBUILD.vile index fcb5801..c77984c 100644 --- a/ncurses/PKGBUILD.vile +++ b/ncurses/PKGBUILD.vile @@ -3,23 +3,16 @@ defpkgbuild(ncurses, #:pkgname, "ncurses", #:pkgver, "6.5_p20241006", - #:pkgrel, 1, + #:pkgrel, 2, #:pkgdesc, "Wide-character terminal libraries, tools and terminfo database", - #:arch, [#:x86-64], + #:arch, [#:x86-64, #:aarch64], #:license, "X11", #:url, "https://invisible-island.net/ncurses/", #:depends, ["musl"], #:source, ["https://distfiles.alpinelinux.org/distfiles/v3.21/ncurses-6.5-20241006.tgz"], #:sha256sums, ["fefd7f516ba7a236239d3213f698fa9736c394bece176671411e94dac83eadfd"], #:build, fn() { - root := get-environment-variable("VINIX_SYSROOT") - run("test", "-f", string-append(root, "/usr/lib/musl-gcc-sysroot.specs")) - run("env", "-u", "CPATH", "-u", "C_INCLUDE_PATH", "-u", "LIBRARY_PATH", - "PKG_CONFIG_PATH=", string-append("PKG_CONFIG_SYSROOT_DIR=", root), - string-append("PKG_CONFIG_LIBDIR=", root, "/usr/lib/pkgconfig"), - string-append("CC=gcc --sysroot=", root, " -specs=", root, "/usr/lib/musl-gcc-sysroot.specs"), - "CFLAGS=-O2 -D_GNU_SOURCE", "ncurses-6.5-20241006/configure", - "--build=x86_64-pc-linux-gnu", "--host=x86_64-linux-musl", "--prefix=/usr", + run("env", "CFLAGS=-O2 -D_GNU_SOURCE", "vinix-configure", "ncurses-6.5-20241006/configure", "--mandir=/usr/share/man", "--without-ada", "--without-tests", "--without-cxx-binding", "--without-cxx", "--without-debug", "--disable-termcap", "--disable-root-access", "--disable-rpath-hack", "--disable-setuid-environ", "--with-build-cc=gcc", @@ -43,5 +36,7 @@ defpkgbuild(ncurses, run("ln", "-sf", "ncursesw.pc", string-append(pc, name, ".pc")) }, list("curses", "tic", "tinfo")) run("test", "-s", string-append(pkgdir(), "/usr/share/terminfo/x/xterm-256color")) + run("env", string-append("TERMINFO=", pkgdir(), "/usr/share/terminfo"), "vinix-run", + "--library-path", lib, string-append(pkgdir(), "/usr/bin/infocmp"), "xterm-256color") run("install", "-Dm644", "ncurses-6.5-20241006/COPYING", string-append(pkgdir(), "/usr/share/licenses/ncurses/COPYING")) }) -- 2.56.1