diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-07-11 21:27:29 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-07-11 21:27:29 +0200 |
commit | 5195a57d4919924c7e7970506b1994e83fdebbbb (patch) | |
tree | 0939379ca3d176975efd109ea2cd66fb9f1f11d9 /debian/_base/applications/multimedia/amarok/debian/install-mp3 | |
parent | cb277da52ac1a12d1b8f855fca48cd013948f4dc (diff) | |
download | tde-packaging-5195a57d4919924c7e7970506b1994e83fdebbbb.tar.gz tde-packaging-5195a57d4919924c7e7970506b1994e83fdebbbb.zip |
DEB: Rearranged applications folder into sub categories.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'debian/_base/applications/multimedia/amarok/debian/install-mp3')
-rw-r--r-- | debian/_base/applications/multimedia/amarok/debian/install-mp3 | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/_base/applications/multimedia/amarok/debian/install-mp3 b/debian/_base/applications/multimedia/amarok/debian/install-mp3 new file mode 100644 index 000000000..7b06cbd2f --- /dev/null +++ b/debian/_base/applications/multimedia/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/kdesu ] && [ -x /usr/bin/install-package ]; then + /opt/trinity/bin/kdesu -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 |