Files

24 lines
656 B
Bash
Raw Permalink Normal View History

2022-09-15 00:24:08 +02:00
#!/bin/bash
# this runs as root.
VERSION=3.1.3
2022-09-15 00:24:08 +02:00
echo "Using OpenSSL $VERSION" >> /etc/versions
source /etc/profile
cd /usr/local/cache
if ! test -f openssl-$VERSION.tar.gz; then
wget https://github.com/openssl/openssl/releases/download/openssl-$VERSION/openssl-$VERSION.tar.gz
2022-09-15 00:24:08 +02:00
fi
cd ~builduser
export PATH="/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH"
tar xf /usr/local/cache/openssl-$VERSION.tar.gz
cd openssl-$VERSION
./Configure shared android-arm64 --prefix=/opt/android-ssl
2022-09-15 00:24:08 +02:00
# don't compress these two into one, 'install' doesn't like -j
make -j`nproc` 2>&1 >/dev/null
make install 2>&1 >/dev/null
echo "SSL $VERSION DONE"