set -e

ptsdir="/usr/share/phoronix-test-suite/"
ptsdocsdir="/usr/share/doc/phoronix-test-suite/"
case "$1" in
    remove|purge)
        if [ -d "$ptsdir" ]; then
            rm -rf "$ptsdir"
            rm -rf "$ptsdocsdir"
            rm -r /usr/bin/phoronix-test-suite
        fi
        ;;
    upgrade|failed-upgrade|abort-install)
        # No action needed
        ;;
esac

exit 0
