aboutsummarylogtreecommitdiffstats
path: root/pokemmo.install
blob: 51f7eb0265daed64a794027a632d3f846cd706b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
msg_blue() {
    printf "${blue}==>${bold} $1${all_off}\n"
}

all_off="$(tput sgr0)"
bold="${all_off}$(tput bold)"
blue="${bold}$(tput setaf 4)"

post_install(){
   xdg-desktop-menu install --novendor --mode system /usr/share/applications/pokemmo.desktop
   msg_blue "To play, you will need to place a Pokemon Black or White ROM, and optionally"
   msg_blue "a FireRed, Emerald, and HeartGold or SoulSilver ROM, in ~/.pokemmo/roms"
   echo ""
   msg_blue "This software is not open-source. You must agree to the terms of service before"
   msg_blue "using this software. The terms of service and licensing information may be"
   msg_blue "found here: https://pokemmo.eu/tos/"
}

post_upgrade() {
  post_install
}

post_remove() {
  xdg-desktop-menu uninstall --novendor --mode system /usr/share/applications/pokemmo.desktop
  msg_blue "You may remove leftover config and data files from '~/.pokemmo'."
}