#!/bin/bash
cd /usr/local/src
# from https://github.com/irungentoo/toxcore/blob/master/INSTALL.md#quick-install
git clone git://github.com/jedisct1/libsodium.git
cd libsodium
git checkout tags/1.0.0
./autogen.sh
./configure && make check
sudo checkinstall --install --pkgname libsodium --pkgversion 1.0.0 --nodoc
sudo ldconfig
cd ..


syntax highlighted by Code2HTML, v. 0.9.1