2014-02-25 14:10:57 +01:00
|
|
|
#!/bin/bash
|
2014-12-01 17:01:47 +01:00
|
|
|
TEXTDOMAIN=la-tools
|
|
|
|
TEXTDOMAINDIR=./
|
|
|
|
name="Anki"
|
|
|
|
|
2014-09-04 17:19:43 +02:00
|
|
|
if dpkg -l | grep anki | grep ii
|
2014-02-25 14:10:57 +01:00
|
|
|
then
|
2014-12-01 17:01:47 +01:00
|
|
|
echo $"$name is already installed"
|
|
|
|
zenity --info --title $"Information" --text $"$name is already installed"
|
2014-02-25 14:10:57 +01:00
|
|
|
exit
|
|
|
|
fi
|
2014-09-02 16:25:12 +02:00
|
|
|
wget -O /tmp/anki.deb http://ankisrs.net/download/mirror/anki-2.0.28.deb
|
2014-02-25 14:10:57 +01:00
|
|
|
apt-get install mplayer -y
|
|
|
|
if dpkg -i /tmp/anki.deb -y
|
|
|
|
then
|
2014-12-01 17:01:47 +01:00
|
|
|
zenity --info --title $"Success" --text $"$name successfully installed"
|
2014-02-25 14:10:57 +01:00
|
|
|
else
|
2014-12-01 17:01:47 +01:00
|
|
|
zenity --error --title $"Error" --text $"An error occurred while installing $name"
|
2014-02-25 14:10:57 +01:00
|
|
|
fi
|
|
|
|
rm /tmp/anki.deb
|