sudo apt install libdouble-conversion-dev libpotrace-dev libgtkmm-3.0-dev libpoppler-dev libpoppler-private-dev libpoppler-glib-dev
git clone https://gitlab.com/inkscape/inkscape/
cd inkscape
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/home/$USER/a_sensible_install_directory/inkscape_install ..
make -j6
make install
bin/inkscape
Note: at this point the last commit on the master
branch of Inkscape was 9a006c9b
. Snippet under MIT license (no warranty, etc.)