So is there any documenation about building non binary packages from scratch?

Just as any architecture-independent package. Why not have a look at one
existing example (apt-cache --names-only search ^doc-).

One problem with many of the -doc packages is that they are part of
multi-packages (e.g. libtool and libtool-doc are built from the same
source package). devhelp-books is an example of a doc-only package.

/M
--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org
http://magnus.therning.org/
Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.
Nearly all men can stand adversity, but if you want to test a man's
character, give him power.
-- Abraham Lincoln