Last active
June 13, 2018 13:46
-
-
Save aswild/bd15e2ccb4701ed53b4d3f5da6dc0e24 to your computer and use it in GitHub Desktop.
ncurses 6.1 local install script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
: ${PREFIX:=/usr/local/ncurses6} | |
default_configopts=( | |
--prefix=${PREFIX} | |
--with-abi-version=6 | |
--enable-widec | |
--disable-shared | |
--enable-pc-files | |
--with-pkg-config-libdir=${PREFIX}/lib/pkgconfig | |
--without-ada | |
--without-manpages | |
--without-progs | |
--without-tack | |
--without-tests | |
--without-dlsym | |
--without-gpm | |
CFLAGS='-O2 -fPIC' | |
) | |
if (( $# > 0 )); then | |
configopts=("$@") | |
else | |
configopts=("${default_configopts[@]}") | |
fi | |
set -x | |
[ -f Makefile ] && make distclean || true | |
./configure "${configopts[@]}" | |
make -j$(nproc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment