Fix NDK_FLAGFILE usage

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
Vitalii Koshura 2018-09-26 02:27:28 +03:00
parent ca71e03fb0
commit d0c0aba866
No known key found for this signature in database
GPG Key ID: CE0DB1726070A5A3
1 changed files with 2 additions and 3 deletions

View File

@ -129,12 +129,11 @@ fi
export CURL_SRC=$BUILD_DIR/curl-${CURL_VERSION}
export NDK_VERSION=17c
export NDK_FLAGFILE="$PREFIX/${arch}/NDK-${NDK_VERSION}_done"
export NDK_FLAGFILE="$PREFIX/NDK-${NDK_VERSION}-${arch}_done"
if [ ! -e "${NDK_FLAGFILE}" ]; then
rm -rf "${PREFIX}/${arch}"
wget -O /tmp/ndk.zip https://dl.google.com/android/repository/android-ndk-r${NDK_VERSION}-linux-x86_64.zip
unzip -qq /tmp/ndk.zip -d $HOME
rm -rf "${PREFIX}/${arch}"
mkdir -p "${PREFIX}/${arch}"
touch "${NDK_FLAGFILE}"
fi
export NDK_ROOT=$HOME/android-ndk-r${NDK_VERSION}