If he was a lazybone, he did it half-assed/made a sloppy job/a half-completed assignment.
As for the second "sense", it could be stated in many ways, two examples:
"Do something with passion, or don´t do it at all."
"Do it right, or don´t do it at all."
"Either do something with all your heart, or don't do it at all."