#!/bin/sh set -eu version_openssl=1.1.1w dir_download="$PWD/download" mkdir -p build; cd build dir_install="$PWD/install-openssl" # Prepare source tar xf "$dir_download/openssl-$version_openssl.tar.gz" cd "openssl-$version_openssl" # Configure source ./config --prefix="$dir_install" no-shared # Build and install make make install