Skip to content

Instantly share code, notes, and snippets.

@aswild
Last active June 13, 2018 13:46
Show Gist options
  • Save aswild/bd15e2ccb4701ed53b4d3f5da6dc0e24 to your computer and use it in GitHub Desktop.
Save aswild/bd15e2ccb4701ed53b4d3f5da6dc0e24 to your computer and use it in GitHub Desktop.
ncurses 6.1 local install script
#!/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