...
- Create a directory for the Pig source code: `mkdir pig`
- cd into that directory: `cd pig`
- Checkout the Pig source code: `svn checkout http://svn.apache.org/repos/asf/pig/trunk/ .`
- Build the project: `ant`
- cd into the piggybank dir: `cd contrib/piggybank/java`
- Build the piggybank: `ant`
- You should now see a piggybank.jar file in that directory.
...