libsodium.sh 339 Bytes
Newer Older
inso's avatar
inso committed
1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash
set -ev

git clone git://github.com/jedisct1/libsodium.git
cd libsodium
git checkout tags/1.0.3
./autogen.sh
if [[ $TRAVIS_OS_UNAME = 'Darwin' ]]; then
  export CFLAGS="-Os -m32 -arch i386";
  export LDFLAGS="-m32 -arch i386";
fi
./configure
inso's avatar
inso committed
13 14
make && sudo make install
if [[ $TRAVIS_OS_UNAME = 'Linux' ]]; then sudo ldconfig; fi