Files
banan-os/ports/ncurses/build.sh
T

33 lines
808 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'
)
pre_configure() {
unset TERMINFO TERMINFO_DIRS
}
post_install() {
for lib in ncurses form panel menu; do
ln -svf ${lib}w.pc "$DESTDIR/usr/lib/pkgconfig/$lib.pc"
done
ln -svf libncursesw.so "$DESTDIR/usr/lib/libncurses.so"
mkdir -p "$DESTDIR/etc/profile.d"
echo 'export NCURSES_NO_UTF8_ACS=1' > "$DESTDIR/etc/profile.d/ncurses.sh"
}