Skip to content

Instantly share code, notes, and snippets.

@skobkin
Created June 26, 2018 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skobkin/67c56458faef8d3356f3d9fc55dd70f3 to your computer and use it in GitHub Desktop.
Save skobkin/67c56458faef8d3356f3d9fc55dd70f3 to your computer and use it in GitHub Desktop.
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