Looks like a piece of drain tile, hopefully not a sewer line! What you will need to do is uncover a couple of feet of the line. Cut the pipe back beyond the coupling, then put in a coupling, a short length of pipe to a second coupling. So you will have two couplings with a short piece of pipe between them.
First of all, some terminology.
![enter image description here](https://i.stack.imgur.com/9pzqu.gif)
What you want to replace is called the JAMB.
You can either replace the whole thing (prefered) or try and fit a smaller piece in to fix the broken area.
With a utility knife, score the paint on both sides of the STOP (The thin piece that stops the door when it is closed.
Pry it off with a small prybar, slot screw driver or whatever you can wedge underneath.
Remove the casing (The moulding, attached to the drywall surrounding the door and threshold if there is one)
Now you can get to the jamb.
Remove the jamb, and go to your lumberyard and get a piece of pine that approximates it in dimensions. You'll probably have to have it planed to the right thickness, but you just might get lucky. For about $1.00 a cut, you can usually get them to cut it to the appropriate width. Length you can handle yourself, even if you need to use hand tools. (Although, depending as to how the latch jamb connects to the upper jamb, you may need to mitre the end.
Now you replace the jamb, Nailing it where the stop will cover the nails, and chisel out the mortise for the catch plate. You can usually just drill the holes for the bolt.
Replace the other pieces you took off with new nails. -- TIP: Don't try and pry out the old nails from the head. Grab them in a pair of vise-grips and pull the heads right through the molding. It's a lot easier.
Paint.
You could also, instead of replacing the entire jamb, cut out the damaged section, and replace it with new, butting everything together. However, even with careful sanding and gap filling, you will see the horizontal lines where it's joined.
Best Answer
Your first consideration has to be evaluating the value of the lamp. There are various factors that would need to enter into the decision equation as to whether to repair or replace:
If you land on the side of repair then I can see a number of possible options.
Picture Source