I put a 16 valve into the Zuks Of Hazzard.
Very easy swap with the right equipment.
I had Trail Tough do the wiring though. I am by no means an electrical laborer. I just don't have the patience.
I pulled the harness from the Tracker, sent it out, 2 weeks later I was installing the motor.
To have TT do the wiring, their adapter kit, Centerforce clutch, and inline fuel pump, I spent $700.
The wiring after they "thin" it out, is very simple and easy to tie into your Samurai. Everything is clearly marked where it needs to connect.
I re-used the Samurai transmission. I didn't have any trouble with the install, adapters, or fitment.
I did not use a body lift either. I just took my time and "eyeballed" what needed a little more room for the hood to close. If you want more info on that part, send me a PM.

I would think if you have a complete vehicle that you are getting the engine from, you probably can sell off the extra parts to help pay for the swap.

When I was done, I think I was into my entire engine swap for $400. That is including the purchase of the donor Tracker, TT's parts, and selling off leftovers.
You can do it on a budget.