It's easy, there are loads of websites around to help you if need be.
Basically you need a completely lightproof box. Biscuit tin, that kind of thing, or make one if you have the time and inclination.
Paint it matte black inside, make a hole in one side, then take some tin foil, make a hole in that with a pin (pinhole geddit?). This tiny hole has to be as round as possible, any imperfections will have an affect on image quality. Then fix the foil over the inside of bigger hole. Then fashion a shutter out of some card or electrical tape so you can cover the pinhole from the outside.
Put some paper opposite the pinhole inside, close it up (all done in the dark). Take it outside, point it at something and open the shutter. Job done.
There are formulas for working out the size your pinhole should be, take a guess at about 0.5mm for your standard shoebox, then you work out the aperture by measuring the distance in millimeters from the hole to the film/paper plane. Divide this by the size of your pinhole and that gives you your aperture to calculate the exposure time. Typically photographic paper is about 12 ISO I think?