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-12-01 20:15:04 +01:00
|
|
|
./apt-update.sh
|
2014-12-01 17:46:52 +01:00
|
|
|
./installed.sh anki $name && exit
|
2014-12-01 18:39:06 +01:00
|
|
|
URL="http://ankisrs.net/download/mirror/anki-2.0.31.deb"
|
|
|
|
wget -c $URL
|
2014-12-01 17:55:31 +01:00
|
|
|
sudo apt-get install mplayer -y
|
2014-12-01 18:39:06 +01:00
|
|
|
if sudo dpkg -i ./$(basename $URL)
|
2014-02-25 14:10:57 +01:00
|
|
|
then
|
2014-12-01 17:01:47 +01:00
|
|
|
zenity --info --title $"Success" --text $"$name successfully installed"
|
2014-12-01 18:39:06 +01:00
|
|
|
rm ./$(basename $URL)
|
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
|