It would be pretty difficult to make your own. The rear especially needs to be balanced. A good custom, offroad driveshaft is going to cost some $$$. Probably $300+. But Ranger stock driveshafts are probably a dime-a-dozen at the JY.
But, you can make a good emergency spare shaft from...