Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CodeShip CI libsodium build
#!/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
You can’t perform that action at this time.