diff options
author | Eric Biggers | 2016-10-22 14:01:35 -0700 |
---|---|---|
committer | Eric Biggers | 2016-10-22 14:11:37 -0700 |
commit | 9ea3c83c0121c00bfc2f8f0c3e414e1b384aa357 (patch) | |
tree | 16f4f426bf856210b30c2055452c3d3b4854414b /nethack.install | |
download | aur-9ea3c83c0121c00bfc2f8f0c3e414e1b384aa357.tar.gz |
Initial commit
Diffstat (limited to 'nethack.install')
-rw-r--r-- | nethack.install | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nethack.install b/nethack.install new file mode 100644 index 000000000000..66ec2aeb5014 --- /dev/null +++ b/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 +} |