a pig of a something

a pig of a (something)

slang A particularly difficult, unpleasant, or undesirable task or thing. I thought I'd be done hours ago, but I've had a pig of a time getting this car up and running again. It was a pig of a game, with both teams clawing and fighting for each goal.
See also: of, pig

a pig of a something

(British English, informal) a difficult or unpleasant thing or task: I’ve had a pig of a day.
See also: of, pig, something