updated on Sun Jan 15 00:02:00 UTC 2012
[aur-mirror.git] / desura / desura.install
blobb2bd29467782b87536bdf0b87e251c085bc74cb1
1 shopt -s extglob dotglob
3 _warning() {
4     /bin/cat << EOF
5     ===> 
6     ===> In order to run Desura, you have to be in the 'users' group.
7     ===> 
8 EOF
11 post_install() {
12   _warning
13   post_upgrade
16 pre_upgrade() {
17   pre_remove
20 post_upgrade() {
21   echo "Updating icon and desktop caches..."
22   xdg-icon-resource forceupdate --theme hicolor &> /dev/null
23   update-desktop-database -qv
24   echo "done."
27 pre_remove() {
28   # Delete .desktop files
29   xdg-desktop-menu uninstall --mode user opt/desura/desura.desktop opt/desura/desura-force.desktop
31   # Delete old files
32   rm -rf opt/desura/.settings/!(cache|games|iteminfo_c.sqlite)
33   rm -rf opt/desura/!(common|.settings)
36 post_remove() {
37   post_upgrade
38     /bin/cat << EOF
39     ===> 
40     ===> Desura's downloads cache and installed games are kept in /opt/desura folder.
41     ===> In order to delete Desura completely, remove /opt/desura folder by hand.
42     ===> 
43 EOF