summaryrefslogtreecommitdiff
path: root/community/nethack/nethack.install
blob: 66ec2aeb5014458fbe9f345eff1fef71e522f17c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
pre_upgrade() {
  if(test `vercmp '3.4.3-5' "$2"` -ge 0); then
    mv /usr/share/nethack /tmp/nethack-backup
  fi
}

post_upgrade() {
  if(test `vercmp '3.4.3-5' "$2"` -ge 0); then
    rm -rf /var/games/nethack
    mv /tmp/nethack-backup /var/games/nethack
  fi
}