mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 22:40:12 +01:00
35 lines
736 B
Bash
35 lines
736 B
Bash
#!/bin/bash
|
|
#
|
|
|
|
echo $0
|
|
set -e
|
|
|
|
NDK_BASE=$1
|
|
|
|
test -e $NDK_BASE || mkdir -p $NDK_BASE
|
|
cd $NDK_BASE
|
|
|
|
if [ ! -e $NDK_BASE/r9b ]; then
|
|
if [ `uname -m` == 'x86_64' ] ; then
|
|
SUFFIX='_64'
|
|
else
|
|
SUFFIX=''
|
|
fi
|
|
tar xjf /vagrant/cache/android-ndk-r9b-linux-x86$SUFFIX.tar.bz2
|
|
tar xjf /vagrant/cache/android-ndk-r9b-linux-x86$SUFFIX-legacy-toolchains.tar.bz2
|
|
mv android-ndk-r9b r9b
|
|
fi
|
|
|
|
if [ ! -e $NDK_BASE/r10e ]; then
|
|
if [ `uname -m` == 'x86_64' ] ; then
|
|
SUFFIX='_64'
|
|
else
|
|
SUFFIX=''
|
|
fi
|
|
7zr x /vagrant/cache/android-ndk-r10e-linux-x86$SUFFIX.bin > /dev/null
|
|
mv android-ndk-r10e r10e
|
|
fi
|
|
|
|
chmod -R a+rX $NDK_BASE/
|
|
find $NDK_BASE/ -type f -executable -print0 | xargs -0 chmod a+x
|