The PKGBUILD files can be fetched via the ABS utility. To learn more about ABS, see the ABS wiki page.
The SVN repositories have been cloned into git repositories and can be viewed via the Github interface. All packages are available here except for community and multilib which are available in a different repository.
You can also get individual PKGBUILDs directly from SVN. This can be especially useful if you need to compile an older version of a package. DO NOT CHECK OUT THE ENTIRE SVN REPO. Your address may be blocked. Use the following commands to check out a specific package:
svn checkout --depth=empty svn://svn.archlinux.org/packages cd packages svn update <your-package-name>For the community and multilib repositories, use the following commands instead:
svn checkout --depth=empty svn://svn.archlinux.org/community cd community svn update <your-package-name>
Visit the wiki for more tips on checking out and updating svn PKGBUILDs.