Taking the source code of a program which would normally run and install correctly, and converting it into a Slax .sb module.
For using the package from some other distribution, see Converting packages to Slax's .sb format.
Untested, but I think for many programs it's:
Instead of a regular
.. then it can be turned into a package with:
dir2lzm /tmp/rootfs mypackage.lzm