sodium.cr/travis-install-lib-sodium.sh

26 lines
560 B
Bash
Raw Normal View History

2018-02-14 01:57:29 +01:00
#!/bin/sh
# The purpose of this file is to install libsodium in
# 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