post_install() {
DIR=/data/data/com.termux/files/usr/lib/games/moria
mkdir -p $DIR
touch $DIR/scores.dat
}
pre_remove() {
cd /data/data/com.termux/files/usr/lib/games/moria || exit
case $1 in
purge|remove)
rm -f game.sav scores.dat;;
esac
}
