summaryrefslogtreecommitdiff
path: root/community/nethack/nethack.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/nethack/nethack.install')
-rw-r--r--community/nethack/nethack.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/nethack/nethack.install b/community/nethack/nethack.install
new file mode 100644
index 000000000..66ec2aeb5
--- /dev/null
+++ b/community/nethack/nethack.install
@@ -0,0 +1,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
+}