2018-02-14 01:57:29 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# The purpose of this file is to install libsodium in
|
2018-02-16 22:19:56 +01:00
|
|
|
# the Travis CI environment. We recommend using a
|
|
|
|
# package manager.
|
2018-02-14 01:57:29 +01:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2019-06-25 22:35:15 +02:00
|
|
|
LIBSODIUM_INSTALL_PATH=`pwd`/sodium
|
|
|
|
|
|
|
|
if [ ! -f "sodium/include/sodium.h" ]; then
|
|
|
|
set -x
|
|
|
|
|
|
|
|
mkdir -p "$LIBSODIUM_INSTALL_PATH"
|
|
|
|
find "$LIBSODIUM_INSTALL_PATH"
|
|
|
|
|
|
|
|
wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz
|
|
|
|
tar xfz LATEST.tar.gz
|
|
|
|
cd libsodium-stable
|
|
|
|
./configure --prefix="$LIBSODIUM_INSTALL_PATH"
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
else
|
|
|
|
echo "using cached libsodium build"
|
|
|
|
find "$LIBSODIUM_INSTALL_PATH"
|
|
|
|
fi
|