Depends how it was dontated, you can specify a loan of the land indefinetly to the city as long as its use is xyz.
If its a straight donation with no caveats attached then the city can do what it wants
My local council tried to build on some park land donated 100 years ago but the donator had specified its usage in the donation so they got shut down pretty hard.