6 mirror
=http
://www.zlib.net
/
11 test -f $file || curl
$mirror$file > $file ||
exit
14 test -d $dir ||
tar xzf
$file ||
exit
17 sysroot
="$(pwd)/sysroot/x86_64-w64-mingw32"
18 cross
="$(pwd)/sysroot/bin/x86_64-w64-mingw32"
19 test -f $dir/example.exe ||
{
21 CC
="$cross-gcc.exe" AR
="$cross-ar.exe rc" RANLIB
="$cross-ranlib.exe" \
22 .
/configure
--prefix=$sysroot &&
27 test -f $sysroot/lib
/libz.a ||