If you are new to Linux then building packages for a given system isn't the first way to go, in my eyes. Learn your way around the commandline
first, then go further from that.
But anyways, I had a look at the build-system package you can download for ttylinux and it comes with documentation, so have a look at that first. It may also help to have a look at LFS
to get a better understanding on how Linux works in general.