Depending on where you are I'm gonna say it's probably at least 7-8 grand to rebuild an older engine to stock specs. I'm talking about having a shop do full rebuild; tear down, hot tank, inspect and measure everything, replace the really worn out parts and/or clean up/repair as needed, re-clean everything, install cam bearings/freeze plugs, build the short block, degree the cam, refurbish the heads with a valve job, new guides, seals and springs, set up the valve train, all new gaskets and seals, time it, paint it and send it off.
And that's if you can even find a regular automotive machine shop anymore... there are zero in my town now and there used to be several. I know of one guy a few towns over but he sends a lot of his stuff out. Shipping heavy engine stuff costs a fortune by itself.
When was the last time anyone had a crank reground or had a set of connecting rods re-done? Block machining is always worth doing but beyond that I'm not sure it makes much sense to put money into refurbishing stock parts anymore. I am a vendor at Carlisle and the last several years I can't even give that stuff away.
Kind of a dying art these days unfortunately.