How would I make a pakage that Installer could install? Like what would would I do to prepare it to put it on my hosting site?

Also how would I make a package that would install sources?