Dig a trench that's at least six inches deep in a straight line along the path where the sprinkler line is to be installed. You can use a shovel or a trenching machine, but make sure the hole is also at least four inches wide to accommodate the pipe.
Lay down the segments of PVC supply line that you want to connect. Lay them end-to-end inside the trench to gauge spacing.
Swab the outside end of the first pipe with a thin layer of PVC primer. Primer helps clean the surface of the pipe before gluing.
Swab the outside end of the pipe that you just primed with a thin layer of PVC cement. Use just enough cement to cover about two inches of the end of the pipe.
Place a PVC coupler over the end of the pipe with the primer and cement on it. Press the piece firmly onto the pipe and hold it there for 30 seconds while the cement sets.
Swab the end of the next piece of PVC pipe with primer and cement, and press that end into the other side of the PVC coupler. Hold that piece in place for 30 seconds. The two pieces of pipe now have a watertight seal and are ready for water in about an hour.
Continue gluing supply pipe together until you reach your desired length. Fill the trench with dirt, and step on the surface to compact the dirt around the supply pipe.