Move static build files in .static
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
13
sodium.sh
13
sodium.sh
@@ -1,7 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p .static
|
||||
cd .static || exit 1
|
||||
|
||||
file=LATEST.tar.gz
|
||||
url=https://download.libsodium.org/libsodium/releases
|
||||
dir="$PWD"
|
||||
|
||||
[ -f "$file" ] || wget -q "$url/$file" -O "$file"
|
||||
[ -f "$file" ] || curl -SsfLO "$url/$file"
|
||||
@@ -10,9 +14,14 @@ url=https://download.libsodium.org/libsodium/releases
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ "$1" ]; then
|
||||
mkdir -p "$1"
|
||||
cd "$1" || exit 1
|
||||
fi
|
||||
|
||||
rm -rf libsodium-stable
|
||||
tar zxf "$file"
|
||||
tar zxf "$dir/$file"
|
||||
cd libsodium-stable || exit 1
|
||||
|
||||
./configure --enable-minimal --disable-dependency-tracking --enable-static --disable-shared
|
||||
./configure ${1+--host=$1} --enable-minimal --disable-dependency-tracking --enable-static --disable-shared
|
||||
make -j
|
||||
|
||||
Reference in New Issue
Block a user