The source code is available as part of the source archive at the RISC OS Packaging Project (www.riscpkg.org) and is stored in a SVN repositry.
Details of how to download it are at that site.