Creating a package from an existing Lisp library is not very difficult.
In addition to the Lisp libraries themselves, you need a package-info.in file and a simple Makefile. The rest is done by XEmacs.rules, part of the packaging system infrastructure.