Created
June 26, 2018 16:19
-
-
Save skobkin/67c56458faef8d3356f3d9fc55dd70f3 to your computer and use it in GitHub Desktop.
CodeShip CI libsodium build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install libsodium on Codeship - https://libsodium.org | |
# | |
LIBSODIUM_DIR=${LIBSODIUM_DIR:=$HOME/cache/libsodium} | |
set -e | |
if [ ! -d "${LIBSODIUM_DIR}" ]; then | |
mkdir -p "${HOME}/libsodium" | |
wget "https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz" | |
tar -xaf "libsodium-1.0.16.tar.gz" --strip-components=1 --directory "${HOME}/libsodium" | |
( | |
cd "${HOME}/libsodium" || exit 1 | |
./configure --prefix="${LIBSODIUM_DIR}" | |
make | |
make install | |
) | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment