#/bin/bash
#Simple Install Scripts for SuperUser.
#By Kenthy#qingdaonews.com 2006.10.16
# For Thizlinux 7.0 or Redhat Linux 9.0, Only for reference.
# Need Packages:
# MPlayer-1.0pre8.tar.bz2
# Font+Skin-MPlayer-1.0pre8.tar.bz2
# mplayer_codecs-all-20060611.tar.bz2
#Step1: Compile Mplayer1.0 Main Contents For Gui.
echo "*****************************************************"
echo "Starting to install MPlayer-1.0pre8."
echo "Now decompress the tarball package ........"
tar jxvf MPlayer-1.0pre8.tar.bz2 -C /usr/src/ > /dev/null
echo "Compiling and Installing ........"
cd /usr/src/MPlayer-1.0pre8
./configure --enable-gui --language=zh_CN --charset=utf8 > /dev/null
make && make install > /dev/null
#Step2: Install The Font And Skins
echo "*****************************************************"
echo "Preparing for font and Skins for Gui-MPlayer"
echo "*****************************************************"
sleep 2
cd -
mkdir -p /usr/local/share/mplayer > /dev/null
mkdir ~/.mplayer > /dev/null
tar jxvf Font+Skin-MPlayer-1.0pre8.tar.bz2 -C /usr/local/share/mplayer/ > /dev/null
ln -s /usr/local/share/mplayer/font/font-arial-iso-8859-1/font-arial-14-iso-8859-1 ~/.mplayer/font
echo "*****************************************************"
echo "Congratuations!!.MPlayer-1.0pre8 Has Been Installed.."
echo "*****************************************************"
sleep 2
echo ""
#Step3: Install The codecs According User's Decision
read -p "Would you install the all-codecs package,then? (Y/N) " DIC
if [ $DIC = "Y" ] || [ $DIC = "y" ] ; then
echo "Start to copy codecs files ......."
tar jxvf mplayer_codecs-all-20060611.tar.bz2 -C /usr/local/lib/
mv -f /usr/local/lib/all-20060611 /usr/local/lib/codecs
else
echo "OK. The all-codecs package will not be install to your system."
exit 0
fi
echo "*****************************************************"
echo "Now Deleting The Spare Files During This Installing"
rm -rf /usr/src/MPlayer-1.0pre8
echo "All things have been done. Enjoy Your Life!!!"
echo "*****************************************************"
阅读(957) | 评论(0) | 转发(0) |