How to compile cryptsetup on Ubuntu 18.04

Since i didnt find any official instructions (the INSTALL is a generic one) on how to compile cryptsetup on Ubuntu 18.04 (server) and it has some dependencies, this might be handy for anybody

$ git clone https://gitlab.com/cryptsetup/cryptsetup.git/
$ sudo apt install automake autopoint libtool pkg-config uuid-dev libdevmapper-dev libpopt-dev libjson-c-dev libssl-dev libblkid-dev gettext
$ cd cryptsetup
$ libtoolize
$ ./autogen.sh
$ ./configure
$ make