A Royal Oak hardware store building has sold as the store prepares to close after 90 years in business.