Skip to content

Commit

Permalink
Support OpenSSL 1.1 URL format
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsmith committed Oct 3, 2024
1 parent 65d87e3 commit c0510bc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion openssl/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ version_dir=$recipe_dir/build/$version
mkdir -p $version_dir
cd $version_dir
src_filename=openssl-$version.tar.gz
wget -c https://github.com/openssl/openssl/releases/download/openssl-$version/$src_filename

if echo $version | grep -q '^1\.'; then
tag="OpenSSL_$(echo $version | sed 's/\./_/g')"
else
tag="openssl-$version"
fi
wget -c "https://github.com/openssl/openssl/releases/download/$tag/$src_filename"

build_dir=$version_dir/$HOST
rm -rf $build_dir
Expand Down

0 comments on commit c0510bc

Please sign in to comment.