Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

debian

d

deb

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.

like image 286
fadedbee Avatar asked Sep 06 '11 10:09

fadedbee


2 Answers

IIRC, by default, D programs are stand alone; i.e. aside from system level .so dependencies (that shouldn't be included in the .deb) they have no dependencies. There are ways to make this not true but they are the exception. Consequently, a D 'hello world' binary, particularly from that standpoint of installing it, will look a lot like a C one.

The upshot of this is that, unless you are doing something strange, a C 'hello world' Debian package should be good enough to get you started.

like image 134
BCS Avatar answered Sep 23 '22 15:09

BCS


If you know of any packaged D application, you can get the package's source:

apt-get source the-package-name

Provided that you added a deb-src entry in your sources.list.

like image 31
Arnaud Le Blanc Avatar answered Sep 24 '22 15:09

Arnaud Le Blanc