summarylogtreecommitdiffstats
path: root/gnome-shell-google-calendar-git.install
blob: 01bc3a75f0cc8976c494896c4d3a2868dfd42451 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_install() {
  ln -s "/usr/share/gnome-shell-google-calendar/gnome-shell-google-calendar.py" "/usr/bin/gnome-shell-google-calendar"
  chmod 755 "/usr/bin/gnome-shell-google-calendar"
  echo "Run manually first time to identify vs gnome-keyring or set anual details at ~/.config/gnome-shell-google-calendar/config.json"
}

post_remove() {
 rm "/usr/bin/gnome-shell-google-calendar"
}

post_upgrade() {
  if [ ! -f "/usr/bin/gnome-shell-google-calendar" ];
  then
    ln -s "/usr/share/gnome-shell-google-calendar/gnome-shell-google-calendar.py" "/usr/bin/gnome-shell-google-calendar"
    chmod 755 "/usr/bin/gnome-shell-google-calendar"
  fi
  echo "If you are using gnome-shell-google-calendar behind a proxy, then configure the file /usr/share/gnome-shell-google-calendar/gnome-shell-google-calendar-startup.sh."
  echo "Run manually first time to identify vs gnome-keyring or set manual details at ~/.config/gnome-shell-google-calendar/config.json"
}