Skip to content

Commit d1dd67d

Browse files
committed
build: try to get latest zlib and pcre version
1 parent 565f5dd commit d1dd67d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

nginx-build-msys2.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ if [[ "${GIT_USER_EMAIL}" = "" ]]; then
2828
fi
2929

3030
# dep versions
31-
ZLIB="zlib-1.2.11"
32-
PCRE="pcre-8.42"
31+
ZLIB="$(curl -s 'https://zlib.net/' | grep -ioP 'zlib-(\d+\.)+\d+' | sort -ruV | head -1)"
32+
ZLIB="${ZLIB:-zlib-1.2.11}"
33+
PCRE="$(curl -s 'https://ftp.pcre.org/pub/pcre/' | grep -ioP 'pcre-(\d+\.)+\d+' | sort -ruV | head -1)"
34+
PCRE="${PCRE:-pcre-8.42}"
3335
OPENSSL="openssl-1.1.1"
3436

3537
# clone and patch nginx
@@ -54,8 +56,8 @@ git checkout -b patch
5456
git am -3 ../nginx-*.patch
5557

5658
# download deps
57-
wget -c -nv "https://download.sourceforge.net/libpng/${ZLIB}.tar.gz"
58-
tar -xf "${ZLIB}.tar.gz"
59+
wget -c -nv "https://zlib.net/${ZLIB}.tar.xz"
60+
tar -xf "${ZLIB}.tar.xz"
5961
wget -c -nv "https://ftp.pcre.org/pub/pcre/${PCRE}.tar.bz2"
6062
tar -xf "${PCRE}.tar.bz2"
6163
wget -c -nv "https://www.openssl.org/source/${OPENSSL}.tar.gz"

0 commit comments

Comments
 (0)