Fix arm issue with clang-pie-wrapper
[termux-packages] / scripts / setup-android-sdk.sh
index ebb87a2..c1038e0 100755 (executable)
@@ -30,12 +30,13 @@ if [ ! -d $NDK ]; then
        mkdir -p $NDK
        cd $NDK/..
        rm -Rf `basename $NDK`
-       curl --fail --retry 3 -o ndk.zip http://dl.google.com/android/repository/android-ndk-r12b-`uname`-x86_64.zip
+       NDK_VERSION=r13
+       curl --fail --retry 3 -o ndk.zip http://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-`uname`-x86_64.zip
 
-       rm -Rf android-ndk-r12
+       rm -Rf android-ndk-$NDK_VERSION
        unzip -q ndk.zip
-       mv android-ndk-r12 `basename $NDK`
+       mv android-ndk-$NDK_VERSION `basename $NDK`
        rm ndk.zip
 fi
 
-echo y | $ANDROID_HOME/tools/android update sdk --no-ui --all --no-https -t "build-tools-23.0.3,android-23"
+echo y | $ANDROID_HOME/tools/android update sdk --no-ui --all --no-https -t "build-tools-24.0.1,android-24"