Browse Source
Merge pull request #66 from MyHush/denio
fix broken libsodium package
pull/68/head
Denio
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
6 deletions
-
res/libsodium/buildlibsodium.sh
|
|
@ -9,16 +9,16 @@ echo "Building libsodium" |
|
|
|
|
|
|
|
# Go into the lib sodium directory |
|
|
|
cd res/libsodium |
|
|
|
if [ ! -f libsodium-1.0.16.tar.gz ]; then |
|
|
|
curl -LO https://download.libsodium.org/libsodium/releases/libsodium-1.0.16.tar.gz |
|
|
|
if [ ! -f libsodium-1.0.18.tar.gz ]; then |
|
|
|
curl -LO https://github.com/MyHush/libsodium/releases/download/1.0.18/libsodium-1.0.18.tar.gz |
|
|
|
fi |
|
|
|
|
|
|
|
if [ ! -d libsodium-1.0.16 ]; then |
|
|
|
tar xf libsodium-1.0.16.tar.gz |
|
|
|
if [ ! -d libsodium-1.0.18 ]; then |
|
|
|
tar xf libsodium-1.0.18.tar.gz |
|
|
|
fi |
|
|
|
|
|
|
|
# Now build it |
|
|
|
cd libsodium-1.0.16 |
|
|
|
cd libsodium-1.0.18 |
|
|
|
LIBS="" ./configure |
|
|
|
make clean |
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then |
|
|
@ -29,4 +29,4 @@ fi |
|
|
|
cd .. |
|
|
|
|
|
|
|
# copy the library to the parents's res/ folder |
|
|
|
cp libsodium-1.0.16/src/libsodium/.libs/libsodium.a ../ |
|
|
|
cp libsodium-1.0.18/src/libsodium/.libs/libsodium.a ../ |
|
|
|