From c5c46ebd36efaaf4680f297a75703bdde0aed9cc Mon Sep 17 00:00:00 2001 From: Rockingcool Date: Sat, 15 Oct 2022 09:21:00 -0500 Subject: [PATCH] Added install script for ncurses --- installfull.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 installfull.sh diff --git a/installfull.sh b/installfull.sh new file mode 100755 index 0000000..542e01e --- /dev/null +++ b/installfull.sh @@ -0,0 +1,19 @@ +#!/bin/bash +FILE=/lib/libncursest.so +WORK_DIR="${PWD}" +CORES="$(nproc)" +CURSES_URL="https://invisible-mirror.net/archives/ncurses/current/ncurses.tar.gz" +if test -f "$FILE"; then + echo "$FILE exists; skipping ncurses compile." +else + echo "$FILE does not exist, fetching and compiling ncurses source code now..." + mkdir ncurses + wget -q -O- "${CURSES_URL}" | tar -xz -C ncurses + echo "Fetched ncurses source code from ${CURSES_URL}..." + cd ncurses/*/ + echo "Runnning configure script..." + ./configure --with-pthread --with-shared > /dev/null + echo "Running make..." + make -j"${CORES}" > /dev/null +fi +