#!/bin/sh

case $2 in
	DEINSTALL)
		config_file=$PKG_PREFIX/share/warsow/config.cfg

		if [ -e $config_file ] && ! [ -s $config_file ]; then
			rm -f $config_file
		fi
		;;

	POST-DEINSTALL)
		rmdir $PKG_PREFIX/share/warsow 2>/dev/null || true
		;;
esac
