Skip to content

Commit

Permalink
update to openssl 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jul 14, 2023
1 parent dfdba60 commit 5ab341b
Showing 1 changed file with 25 additions and 1 deletion.
1 change: 0 additions & 1 deletion openssl

This file was deleted.

25 changes: 25 additions & 0 deletions openssl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Use legacy bundle on high-sierra
if [ "x${OSTYPE:6:1}" = "x1" ]; then
bottle="https://github.com/autobrew/bundler/releases/download/openssl-3.1.1/openssl-1.1.1h-high_sierra.tar.xz"
else
bottle="https://github.com/autobrew/bundler/releases/download/openssl-3.1.1/openssl-3.1.1-universal.tar.xz"
fi

# Skip if disabled
if [ "$DISABLE_AUTOBREW" ]; then return 0; fi
echo "Using autobrew bundle: $(basename $bottle)"

# General setup
BREWDIR="$PWD/.deps"
mkdir -p $BREWDIR
curl -sSL $bottle -o libs.tar.xz
tar -xf libs.tar.xz --strip 1 -C $BREWDIR
rm -f libs.tar.xz

# Flags
PKG_CFLAGS="-I${BREWDIR}/include"
PKG_LIBS="-L${BREWDIR}/lib -lssl -lcrypto"

# Cleanup
echo "rm -Rf .deps" >> cleanup
chmod +x cleanup

0 comments on commit 5ab341b

Please sign in to comment.