#!/bin/sh # ===================================================================== # Projet : DARKMAKE # Fichier : install_vars # Auteur : Nicolas "DarkHack" Chapuis (c) 2026 # ================== DARKHACK ================== # [ darkweb.fr - system online ] # Powered by Perplexity, your AI assistant # [https://www.perplexity.ai](https://www.perplexity.ai) # ============================================== # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ===================================================================== pkgName="ncurses" pkgVersion="v6.2" #pkgVersion="master" pkgDeps="lib/autotools/autoconf;lib/autotools/gnulib;lib/autotools/automake" pkgDeps="$pkgDeps;lib/web/pcre2" pkgDeps="$pkgDeps;lib/autotools/libtool" pkgConfName="ncurses" pkgInstallPath="lib/system/ncurses" #pkgConfPath="/usr/lib" PKG_LIBS="" PKG_CFLAGS="" cmdNcurses6Config="/usr/bin/ncurses6-config" if [ -x "${cmdNcurses6Config}" ];then PKG_LIBS="$PKG_LIBS $( ${cmdNcurses6Config} --libs)" PKG_CFLAGS="$PKG_CFLAGS $( ${cmdNcurses6Config} --cflags)" fi cmdNcursest6Config="/usr/bin/ncursest6-config" if [ -x "${cmdNcursest6Config}" ];then PKG_LIBS="$PKG_LIBS $( ${cmdNcursest6Config} --libs)" PKG_CFLAGS="$PKG_CFLAGS $( ${cmdNcursest6Config} --cflags) " fi #echo cmdNcurses6Config:$cmdNcurses6Config cmdNcursest6Config:$cmdNcursest6Config #echo PKG_LIBS:$PKG_LIBS PKG_CFLAGS:$PKG_CFLAGS PKG_SEARCHEAD_FILE="curses.h" #PKG_SEARCHLIB_FILE="libncurses.a" PKG_SEARCHLIB_FILE="libncursest.so" NCURSES_LIB="" NCURSES_INCLUDE="" if [ -f "/usr/local/lib/${PKG_SEARCHLIB_FILE}" ];then NCURSES_LIB="/usr/local/lib" elif [ -f "/usr/lib/${PKG_SEARCHLIB_FILE}" ];then NCURSES_LIB="/usr/lib" fi if [ -f "/usr/local/include/${PKG_SEARCHEAD_FILE}" ];then NCURSES_INCLUDE="/usr/local/include" elif [ -f "/usr/include/${PKG_SEARCHEAD_FILE}" ];then NCURSES_INCLUDE="/usr/include" fi PKG_SEARCHEADLIB_FOLDERS="$PKG_SEARCH_FOLDERS ${NCURSES_LIB}:${NCURSES_INCLUDE}" #PKG_SEARCHEADLIB_FOLDERS="" work="/opt/lib/$pkgName" pkgSrc="$work/$pkgVersion" pkgDirLog="$work/$pkgVersion-log" #if [ ! -d "$pkgSrc" ];then mkdir -p "$pkgSrc";fi if [ ! -d "$pkgDirLog" ];then mkdir -p "$pkgDirLog";fi