mirror=http://repo.msys2.org/mingw/${ci_host%%-*}
dep_prefix=$(pwd)/${ci_host}-prefix
install -d "${dep_prefix}"
- for pkg in \
- bzip2-1.0.8-1 \
- expat-2.2.9-1 \
- gcc-libs-9.3.0-2 \
- gettext-0.19.8.1-8 \
- glib2-2.64.2-1 \
- iconv-1.16-1 \
- libffi-3.3-1 \
- libiconv-1.16-1 \
- libwinpthread-git-8.0.0.5814.9dbf4cc1-1 \
- pcre-8.44-1 \
- zlib-1.2.11-7 \
- ; do
+ packages=(
+ bzip2-1.0.8-1
+ expat-2.2.9-1
+ gcc-libs-9.3.0-2
+ gettext-0.19.8.1-8
+ glib2-2.64.2-1
+ iconv-1.16-1
+ libffi-3.3-1
+ libiconv-1.16-1
+ libwinpthread-git-8.0.0.5814.9dbf4cc1-1
+ pcre-8.44-1
+ zlib-1.2.11-7
+ )
+ for pkg in "${packages[@]}" ; do
wget ${mirror}/mingw-w64-${ci_host%%-*}-${pkg}-any.pkg.tar.xz
tar -C ${dep_prefix} --strip-components=1 -xvf mingw-w64-${ci_host%%-*}-${pkg}-any.pkg.tar.xz
done