Files
banan-os/ports/ncurses/build.sh
T
Bananymous 130c4f681c ports/ncurses: Enable widec support and disable test compilation
There is one test with buggy macros that does not compile and im not
feeling like making a patch for it now :^)
2026-07-20 04:07:23 +03:00

29 lines
803 B
Bash
Executable File

#!/bin/bash ../install.sh
NAME='ncurses'
VERSION='6.6'
DOWNLOAD_URL="https://ftpmirror.gnu.org/gnu/ncurses/ncurses-$VERSION.tar.gz#355b4cbbed880b0381a04c46617b7656e362585d52e9cf84a67e2009b749ff11"
CONFIG_SUB=('config.sub')
CONFIGURE_OPTIONS=(
"--with-pkg-config='$PKG_CONFIG'"
"--with-pkg-config-libdir=/usr/lib/pkgconfig"
'--enable-pc-files'
'--enable-sigwinch'
'--with-shared'
'--without-tests'
'--without-ada'
'--without-manpages'
CFLAGS='-std=c17'
)
post_install() {
for lib in ncurses ncurses++ form panel menu; do
ln -sv ${lib}w.pc "$DESTDIR/usr/lib/pkgconfig/$lib.pc"
done
ln -sv libncursesw.so "$DESTDIR/usr/lib/libncurses.so"
shellrc="$BANAN_SYSROOT/home/user/.shellrc"
grep -q 'export NCURSES_NO_UTF8_ACS=' "$shellrc" || echo 'export NCURSES_NO_UTF8_ACS=1' >> "$shellrc"
}