Search code examples
debianddeb

Does anyone have a 'hello world' Debian package, for D source code?


I'm writing a D application which I want to package as a Debian package.

Does anyone know of a tutorial, or a skeleton package, to show me how to to do this for a D application?

Do I need to use autotools to build it?

Thanks,

Chris.


Solution

  • The source language of your project is rather unimportant. If it already has a Makefile, all you do in debian/rules is make install with the target paths set up where the packaging scripts expect (you might want to hack the main Makefile to support the DESTDIR installation prefix). I would recommend Debhelper et al.; then your job is basically to fill in the debian/README.Debian and debian/copyright files, and comment out unnecessary stuff from debian/rules.