#!/bin/bash
############################################################################################
# Taltan - http://taltan.free.fr - ola.taltan@laposte.net                                  #
# Script XMMS-1.2.11_install.sh                                                            #
# Script d'installation de XMMS 1.2.11 sur Ubuntu 8.04 Hardy Heron                         #
# Nécessite wget : sudo apt-get install wget                                               #
# 04/05/2008 - v1.0 - Création                                                             #
############################################################################################

#vérification de l'utilisateur qui lance le script
USER=`whoami`
cd /tmp

#téléchargement et installation du paquet xmms_1.2.11-1_i386.deb
echo "Téléchargement et installation du paquet xmms_1.2.11-1_i386.deb"
wget http://taltan2.free.fr/dl/ubuntu/xmms_1.2.11-1_i386.deb
echo "Merci de saisir votre mot de passe :"
sudo dpkg -i xmms_1.2.11-1_i386.deb
rm -f xmms_1.2.11-1_i386.deb
echo "########################################################################################"
echo "Installation du paquet xmms_1.2.11-1_i386.deb ...... OK"
echo "########################################################################################"

#téléchargement et installation de tous les skins
wget http://taltan2.free.fr/dl/ubuntu/xmms-all_skin.tar.gz
tar -xzf xmms-all_skin.tar.gz -C /home/$USER/.xmms/Skins
rm -f xmms-all_skin.tar.gz
echo "########################################################################################"
echo "Téléchargement et installation de tous les skins ...... OK"
echo "########################################################################################"

#téléchargement et installation des préselections WINAMP pour l'égaliser
wget http://taltan2.free.fr/dl/ubuntu/xmms-winamp_presets.gz
gunzip -c xmms-winamp_presets.gz > /home/$USER/.xmms/eq.preset
rm -f xmms-winamp_presets.gz
echo "########################################################################################"
echo "Téléchargement et installation des préselections WINAMP pour l'égaliser ...... OK"
echo "########################################################################################"

#création du lanceur pour la console XMMS,
cd /home/$USER/.local/share/applications
wget http://taltan2.free.fr/dl/ubuntu/XMMS.desktop
echo "########################################################################################"
echo "Création du lanceur de la console XMMS dans le menu Applications/Son et vidéo ...... OK"
echo "########################################################################################"
#fin du script
