#!/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="gettext" #pkgVersion="master" #pkgVersion="v0.20.1" #pkgVersion="v0.20" pkgVersion="v0.19.8.1" #pkgVersion="v0.19.8" #pkgVersion="v0.19.7" #v0.19.6 #v0.19.5.1 #v0.19.5 #v0.19.4 #v0.19.3 #v0.19.2.1 #v0.19.2 #v0.19.1 #pkgVersion="v0.19" #pkgVersion="v0.18.3.2" pkgDeps="lib/autotools/autoconf;lib/autotools/automake;lib/autotools/gnulib" pkgDeps="$pkgDeps;lib/autotools/bison;lib/autotools/gperf" pkgDeps="${pkgDeps};lib/autotools/libtool" #if [ -f "$racine/lib/autotools/gettext/global/gnulib_${pkgVersion}" ];then # . $racine/lib/autotools/gettext/global/gnulib_${pkgVersion} #fi pkgConfName="gettext" pkgInstallPath="lib/autotools/gettext" #pkgConfPath="${pkgSrc}/dist" PKG_LIBS="-lgettext" PKG_SEARCHEAD_FILE="gettext-po.h" PKG_SEARCHEADLIB_FOLDERS="" if [ -f "/usr/local/lib/libasprintf.a" ] && [ -f "/usr/local/lib/libgettextpo.a" ];then pkgConfPath="/usr/local/lib" PKG_SEARCHLIB_FILE="libgettextpo.a" PKG_SEARCHEADLIB_FOLDERS="$PKG_SEARCH_FOLDERS /usr/local/lib:/usr/local/include" elif [ -f "/usr/lib/libasprintf.a" ] && [ -f "/urs/lib/libgettextpo.a" ];then pkgConfPath="/usr/lib" PKG_SEARCHLIB_FILE="libgettextpo.a" PKG_SEARCHEADLIB_FOLDERS="$PKG_SEARCH_FOLDERS /usr/lib:/usr/include" else PKG_SEARCHLIB_FILE="libgettextpo.so.0" PKG_SEARCHEADLIB_FOLDERS="$PKG_SEARCH_FOLDERS /usr/lib/x86_64-linux-gnu:/usr/include" PKG_SEARCHEADLIB_FOLDERS="$PKG_SEARCH_FOLDERS /usr/lib/i386-linux-gnu:/usr/include" fi if [ -d "/usr/local/share/gettext" ];then PKG_CFLAGS="-I/usr/local/share/gettext" elif [ -d "/usr/share/gettext" ];then PKG_CFLAGS="-I/usr/share/gettext" fi 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