hsm
hsm copied to clipboard
[Packaging] Provide Ubuntu/Debian Package
For example a snap: https://ubuntu.com/tutorials/create-your-first-snap#1-overview
Snap was blocked recently by linux mint link
Now that the library provides proper install rules with #141, packaging with cpack
is trivial. This could be revisited now.
I don't know how becoming a Debian package maintainer goes, but they usually get upstreamed for Ubuntu, so if you can provide a .deb you will cover both.
Since this library only provides a development component, your library should be called libhsm-dev
in the Debian repository.
Useful links: cpack
executable, CPack module (this is conditionally included if the project is the top level project), CPack DEB generator
The list of variables in the above documentations allow you to simply provide the necessary information from the command line to package as a .deb without touching the CMakeLists file(s).
I have an example here that builds .deb files with all lintian checks passing.