@@ -10,6 +10,36 @@ set -x
10
10
# Absolute path to this script
11
11
srcdir=$( dirname $( realpath $0 ) )
12
12
13
+ # Substitute some ucrt64 specific inputs
14
+ if [ " $toolchain " = " ucrt64" ]; then
15
+ sed -i ' s|/mingw64|/ucrt64|g' " ${srcdir} /MkRules.local.in"
16
+ sed -i ' s|/mingw64|/ucrt64|g' " ${srcdir} /create-tcltk-bundle.sh"
17
+ sed -i ' s|x86_64|ucrt-x86_64|g' " ${srcdir} /create-tcltk-bundle.sh"
18
+ fi
19
+
20
+ # Temp fix for older rtools40 installations
21
+ if ! grep -Fxq " ucrt64" /etc/pacman.conf; then
22
+ echo " [ucrt64]" >> /etc/pacman.conf
23
+ echo " Server = https://cloud.r-project.org/bin/windows/Rtools/4.0/ucrt64/" >> /etc/pacman.conf
24
+ echo " SigLevel = Never" >> /etc/pacman.conf
25
+ fi
26
+
27
+ # Get architecture
28
+ case ${toolchain} in
29
+ mingw32)
30
+ _arch=i686
31
+ WIN=32
32
+ ;;
33
+ mingw64)
34
+ _arch=x86_64
35
+ WIN=64
36
+ ;;
37
+ ucrt64)
38
+ _arch=ucrt-x86_64
39
+ WIN=64
40
+ ;;
41
+ esac
42
+
13
43
# Put pdflatex on the path (needed only for CMD check)
14
44
export PATH=" $PATH :/c/progra~1/git/bin:/c/progra~1/MiKTeX/miktex/bin/x64"
15
45
echo " PATH: $PATH "
@@ -27,8 +57,8 @@ curl -sSL https://curl.haxx.se/ca/cacert.pem > etc/curl-ca-bundle.crt
27
57
./.github/workflows/svn-info.sh
28
58
29
59
# Install system libs
30
- pacman -Syu --noconfirm
31
- pacman -S --needed --noconfirm mingw-w64-{i686,x86_64 }-{gcc,gcc-fortran,icu,libtiff,libjpeg,libpng,pcre2,xz,bzip2,zlib,cairo,tk,curl}
60
+ pacman -Sy --noconfirm
61
+ pacman -S --needed --noconfirm mingw-w64-${_arch } -{gcc,gcc-fortran,icu,libtiff,libjpeg,libpng,pcre2,xz,bzip2,zlib,cairo,tk,curl}
32
62
33
63
# Create the TCL bundle required by tcltk package
34
64
mkdir -p Tcl/{bin,bin64,lib,lib64}
0 commit comments