Skip to content

Commit eed9ea9

Browse files
authored
build: fix pcre url
1 parent 6de0c1a commit eed9ea9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nginx-build-msys2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fi
3131
ZLIB="$(curl -s 'https://zlib.net/' | grep -ioP 'zlib-(\d+\.)+\d+' | sort -ruV | head -1)"
3232
ZLIB="${ZLIB:-zlib-1.2.11}"
3333
echo "${ZLIB}"
34-
PCRE="$(curl -s 'https://ftp.pcre.org/pub/pcre/' | grep -ioP 'pcre-(\d+\.)+\d+' | sort -ruV | head -1)"
34+
PCRE="$(curl -s 'https://sourceforge.net/projects/pcre/rss?path=/pcre/' | grep -ioP 'pcre-(\d+\.)+\d+' |sort -ruV | head -1)"
3535
PCRE="${PCRE:-pcre-8.45}"
3636
echo "${PCRE}"
3737
OPENSSL="$(curl -s 'https://www.openssl.org/source/' | grep -ioP 'openssl-1\.(\d+\.)+[a-z\d]+' | sort -ruV | head -1)"
@@ -68,7 +68,7 @@ git am -3 ../nginx-*.patch
6868
wget -c -nv "https://zlib.net/${ZLIB}.tar.xz" || \
6969
wget -c -nv "http://prdownloads.sourceforge.net/libpng/${ZLIB}.tar.xz"
7070
tar -xf "${ZLIB}.tar.xz"
71-
wget -c -nv "https://ftp.pcre.org/pub/pcre/${PCRE}.tar.bz2"
71+
wget -c -nv "https://download.sourceforge.net/project/pcre/pcre/$(echo $PCRE | sed 's/pcre-//')/${PCRE}.tar.bz2"
7272
tar -xf "${PCRE}.tar.bz2"
7373
wget -c -nv "https://www.openssl.org/source/${OPENSSL}.tar.gz"
7474
tar -xf "${OPENSSL}.tar.gz"

0 commit comments

Comments
 (0)