#!/bin/bash
# ----------------------------------------------
nomlogiciel="${0##*/}"
FONCTION="installation de gtkdialog"
VERSION="1.0.0"
# NOTES DE VERSIONS
# kholo 2017
# ----------------------------------------------
echo "lancement $nomlogiciel..." ;

PROGRAM="gtkdialog-0.8.3" ;

# sudo apt install build-essential ;        #[on Debian based systems]
sudo apt install build-essential libgtk2.0-dev
sudo apt install gtk2-engines*

[ -f "$PROGRAM.tar.gz" ] || {

#wget https://gtkdialog.googlecode.com/files/$PROGRAM.tar.gz ; # lien mort !
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/gtkdialog/$PROGRAM.tar.gz ;
}
[ -d "$PROGRAM" ] || {
tar -xvf $PROGRAM.tar.gz ;
}
cd $PROGRAM/ ;
./configure ;
make ;
sudo make install ;

exit 0