a difficult or unpleasant thing or task
a pig of a sth
I've had a pig of a day.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition