The Common Lisp Debhelper is provided by the dh-lisp package. To
use it, you have to set a Build-Depends: on it.
The basic operations are taken by just invoking dh-lisp
-ppackage in your debian/rules after all files
have been copied to their destination, i.e. after dh_install or
similar things are run. dh_lisp searches the package tree for
ASDF system definitions, establishes symbolic links and generates
postinst and prerm scripts automatically. This means
that the above steps mentioned for library packaging are done automatically.
dh_lisp also scans the directory for pre-compiled Lisp code (i.e.
CMUCL's x86f, SBCL's fasl and CLISP's fas) and adds dependencies for the
correct implementation and version to the substitution variable
${misc:Depends}. A dependency for the
common-lisp-controller is also added, so your
debian/control should contain a line like this for binary
packages: Depends: ${misc:Depends}.
An additional argument to dh_lisp is taken for an implementation
name. (e.g. dh_lisp -ppackage
implementation). It will then — additionally to above actions
— look for your implementation script in
debian/implementation.sh.
dh-lisp installs the implementation control script and generates
the required maintainer scripts.
Common Lisp in Debian Manual
René van Bevernrvb@progn.org