To mend shattered loves is all you have to do (5)
I believe the answer is:
solve
'do' is the definition.
(thesaurus)
'to mend shattered loves is all you have' is the wordplay.
'loves' can be anagrammed to 'SOLVE'.
Though, I'm not sure how the anagram is indicated.
'to' acts as a link.
Can you help me to learn more?
(Other definitions for solve that I've seen before include "Crack clues" , "Person living voluntarily outside their own country" , "Work out (a clue)" , "Find an answer to (a problem)" , "Get answer to (a clue)" .)