-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathbuster_deps.sh
More file actions
executable file
·23 lines (18 loc) · 838 Bytes
/
Copy pathbuster_deps.sh
File metadata and controls
executable file
·23 lines (18 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
set -eo pipefail
export NDK_VERSION=android-ndk-r20b
export NDK_FILENAME=${NDK_VERSION}-linux-x86_64.zip
sha256_file=8381c440fe61fcbb01e209211ac01b519cd6adf51ab1c2281d5daad6ca4c8c8c
apt-get -yqq update &> /dev/null
apt-get -yqq upgrade &> /dev/null
apt-get -yqq install python curl build-essential libtool autotools-dev automake pkg-config bsdmainutils unzip git &> /dev/null
mkdir -p /opt
cd /opt && curl -sSO https://dl.google.com/android/repository/${NDK_FILENAME} &> /dev/null
echo "${sha256_file} ${NDK_FILENAME}" | shasum -a 256 --check
unzip -qq ${NDK_FILENAME} &> /dev/null
rm ${NDK_FILENAME}
if [ -f /.dockerenv ]; then
apt-get -yqq --purge autoremove unzip
apt-get -yqq clean
rm -rf /var/lib/apt/lists/* /var/cache/* /tmp/* /usr/share/locale/* /usr/share/man /usr/share/doc /lib/xtables/libip6*
fi