How to create msgpack DEB packages

Problem:

You want to create a binary DEB package of the msgpack C++ binding. However, there is no official DEB package available.

Solution:

Here’s a script that fully automates the process of building the deb package.

Before building it, you need to install the DEB build toolchain and libgtest-dev (for msgpack unit tests):

sudo apt-get install devscripts debhelper build-essential libgtest-dev

After that, you can download deb-msgpack.sh from my deb-buildscripts repository and run it to create a debian package.

Note that you need to checkout deb-buildscripts commit e4666142 since LevelDB is not supported in the current master.