diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-03 23:02:46 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-04-03 23:02:46 +0900 |
commit | fcad8b8d150fb9f508973e3044a103de74ec3877 (patch) | |
tree | ca34a8cf3bfbe08335d40c47863b4901e1d19609 /ubuntu/_base/applications/amarok/debian/install-mp3 | |
parent | 5d8ed1fab813d86b04383f7fcf8ab2c994cbea30 (diff) | |
download | tde-packaging-fcad8b8d150fb9f508973e3044a103de74ec3877.tar.gz tde-packaging-fcad8b8d150fb9f508973e3044a103de74ec3877.zip |
DEB: use _base folder for a distro instead of specific distros (squeeze and maverick).
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ubuntu/_base/applications/amarok/debian/install-mp3')
-rw-r--r-- | ubuntu/_base/applications/amarok/debian/install-mp3 | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ubuntu/_base/applications/amarok/debian/install-mp3 b/ubuntu/_base/applications/amarok/debian/install-mp3 new file mode 100644 index 000000000..ae0663182 --- /dev/null +++ b/ubuntu/_base/applications/amarok/debian/install-mp3 @@ -0,0 +1,40 @@ +check_mp3() { + + INSTALLED=`dpkg --get-selections libxine1-ffmpeg | grep install` + + if [ -z "$INSTALLED" ]; then + if [ -x /opt/trinity/bin/kdialog ]; then + kdialog --msgbox "There was an error installing MP3 support. You need to install the package \"libxine1-ffmpeg\" manually." --icon amarok + elif [ -x /usr/bin/zenity ]; then + zenity --info --text "There was an error installing MP3 support. You need to install the package \"libxine1-ffmpeg\" manually." + else + Xdialog --msgbox "There was an error installing MP3 support.\nYou need to install the package \"libxine1-ffmpeg\" manually." 10 60 + fi + exit 1 + else + if [ -x /opt/trinity/bin/kdialog ]; then + kdialog --msgbox "MP3 support now installed, you will need to restart Amarok." --icon amarok + elif [ -x /usr/bin/zenity ]; then + zenity --info --text "MP3 support now installed, you will need to restart Amarok." + else + Xdialog --msgbox "MP3 support now installed, you will need to restart Amarok." 5 60 + fi + exit 0 + fi +} + +INSTALLED=`dpkg --get-selections libxine1-ffmpeg | grep install` + +#is available, not installed +if [ -z "$INSTALLED" ]; then + if [ -x /opt/trinity/bin/tdesu ] && [ -x /usr/bin/install-package ]; then + /opt/trinity/bin/tdesu -d "install-package --icon amarok --install libxine1-ffmpeg" + elif [ -x /usr/bin/gksudo ] && [ -x /usr/sbin/synaptic ]; then + gksudo "sh -c 'echo \"libxine1-ffmpeg i\"|synaptic --non-interactive --set-selections'" + else + xterm -e 'sudo apt-get install libxine1-ffmpeg' + fi + check_mp3 +fi + +exit 0 |