Please take a look to dpkg class and to example-hello application.
Ok,
but when I look into example-hello then I'm able to comprehend that, but
when I take look at example-raw which only inlcudes dpkg-raw then I can't see any possibility to build
the package out from its sources.
So when including dpkg.bbclass then I'm able to build out from sources.
But when I also need to "debianize" my sources I have to include dpkg-raw, which in turn will overwrite the
dpkg_runbuild task.
I think the dpkg_runbuild of dpkg-raw should also call "sudo chroot ${BUILDCHROOT_DIR} /build.sh ${PP}/${SRC_DIR}" ?
Bennie