Hi,

I am in the process of translating header files of libssh2 from C to D. I would like to create a deimos repository for it (easy) and a dub package, so it can be seamlessly used (stuck).

I basically have all the pieces (currently only for Windows), but I am not sure, how to proceed with making them work together.

To sum it up, I have the following:

  • translated D headers
  • dlls (libssh2, openssl)
  • import libraries

Now, I would like to do something like openssl has on code.dlang.org. That is, a package that one can add as a dependency and have it just working (tm). Preferably I would like it to use the existing openssl dub package, so that libraries are not doubled/in conflict.

Is there any documentation how to do that? I am at loss how to begin, i.e., what type of project I will be creating? A static library that gets linked to an application that will be using it? Or something else?

Any help is appreciated.

Thanks.