Speak the truth, be tactful, never mention the evils that the person did, and remember that the deceased is in the room in spirit -- and will remember your words.
It helps to be brief and think originally. Such is the way of an intelligent and caring friend.