1 | 1 |
deleted file mode 100755 |
... | ... |
@@ -1,141 +0,0 @@ |
1 |
-#!/bin/bash |
|
2 |
-zigbuild=zig-linux-x86_64-0.11.0-dev.514+4be1bb4aa.tar.xz |
|
3 |
-zigversion=$(echo $zigbuild | cut -d '-' -f 4) |
|
4 |
-if [ -e zig ] ; then |
|
5 |
- echo "ERROR: A zig directory already exists, aborting install" |
|
6 |
- exit 1 |
|
7 |
-fi |
|
8 |
-parentdir=$(pwd) |
|
9 |
-mkdir -p zig zig-dl |
|
10 |
-cd zig |
|
11 |
- |
|
12 |
-# Zig install |
|
13 |
-if [ ! -e ../zig-dl/$zigbuild ] ; then |
|
14 |
- (cd ../zig-dl && wget https://ziglang.org/builds/$zigbuild) |
|
15 |
-fi |
|
16 |
-xz -dc <../zig-dl/$zigbuild | tar -xvf - |
|
17 |
-ln -s ${zigbuild/.tar.xz/} zig-$zigversion |
|
18 |
-cat > env.sh <<'EOF' |
|
19 |
-#!/bin/bash |
|
20 |
-echo "Reminder: this script has to be used with source (.) instead of exec" |
|
21 |
-EOF |
|
22 |
-echo "export PATH=\$PATH:$parentdir/zig/zig-$zigversion" >> env.sh |
|
23 |
-chmod 755 env.sh |
|
24 |
-# msys2 install |
|
25 |
-mkdir -p windows-msys2-mingw |
|
26 |
-cat > deps.txt <<'EOF' |
|
27 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-aom-3.5.0-1-any.pkg.tar.zst |
|
28 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-brotli-1.0.9-5-any.pkg.tar.zst |
|
29 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-bzip2-1.0.8-2-any.pkg.tar.zst |
|
30 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-ca-certificates-20211016-3-any.pkg.tar.zst |
|
31 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-dav1d-1.0.0-1-any.pkg.tar.zst |
|
32 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-expat-2.5.0-1-any.pkg.tar.zst |
|
33 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-flac-1.4.2-1-any.pkg.tar.zst |
|
34 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-fluidsynth-2.3.0-1-any.pkg.tar.zst |
|
35 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-freetype-2.12.1-1-any.pkg.tar.zst |
|
36 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-gcc-libs-12.2.0-6-any.pkg.tar.zst |
|
37 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-gettext-0.21-3-any.pkg.tar.zst |
|
38 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-giflib-5.2.1-3-any.pkg.tar.zst |
|
39 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-glib2-2.74.3-1-any.pkg.tar.zst |
|
40 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-gmp-6.2.1-3-any.pkg.tar.zst |
|
41 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-graphite2-1.3.14-2-any.pkg.tar.zst |
|
42 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-harfbuzz-5.3.1-2-any.pkg.tar.zst |
|
43 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-highway-1.0.2-1-any.pkg.tar.zst |
|
44 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-imath-3.1.6-1-any.pkg.tar.zst |
|
45 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-jbigkit-2.1-4-any.pkg.tar.xz |
|
46 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-lcms2-2.14-1-any.pkg.tar.zst |
|
47 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-lerc-4.0.0-1-any.pkg.tar.zst |
|
48 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libavif-0.11.1-3-any.pkg.tar.zst |
|
49 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libdeflate-1.15-1-any.pkg.tar.zst |
|
50 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libffi-3.4.4-1-any.pkg.tar.zst |
|
51 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libiconv-1.17-1-any.pkg.tar.zst |
|
52 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libjpeg-turbo-2.1.4-1-any.pkg.tar.zst |
|
53 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libjxl-0.7.0-2-any.pkg.tar.zst |
|
54 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libmodplug-0.8.9.0-4-any.pkg.tar.zst |
|
55 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libogg-1.3.5-1-any.pkg.tar.zst |
|
56 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libpng-1.6.39-1-any.pkg.tar.zst |
|
57 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libsndfile-1.1.0-3-any.pkg.tar.zst |
|
58 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libsystre-1.0.1-4-any.pkg.tar.xz |
|
59 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libtasn1-4.19.0-1-any.pkg.tar.zst |
|
60 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libtiff-4.4.0-6-any.pkg.tar.zst |
|
61 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libtre-git-r128.6fb7206-2-any.pkg.tar.xz |
|
62 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libvorbis-1.3.7-1-any.pkg.tar.zst |
|
63 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libwebp-1.2.4-2-any.pkg.tar.zst |
|
64 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libwinpthread-git-10.0.0.r157.gd295924f0-1-any.pkg.tar.zst |
|
65 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libyuv-1844.r2374.f9fda6e7-1-any.pkg.tar.zst |
|
66 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-mpc-1.2.1-1-any.pkg.tar.zst |
|
67 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-mpdecimal-2.5.1-1-any.pkg.tar.zst |
|
68 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-mpfr-4.1.0.p13-1-any.pkg.tar.zst |
|
69 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-mpg123-1.31.1-1-any.pkg.tar.zst |
|
70 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-ncurses-6.3-6-any.pkg.tar.zst |
|
71 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-openexr-3.1.5-2-any.pkg.tar.zst |
|
72 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-openssl-1.1.1.s-1-any.pkg.tar.zst |
|
73 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-opus-1.3.1-5-any.pkg.tar.zst |
|
74 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-opusfile-0.12-2-any.pkg.tar.zst |
|
75 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-p11-kit-0.24.1-3-any.pkg.tar.zst |
|
76 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-pcre2-10.40-1-any.pkg.tar.zst |
|
77 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-portaudio-1~19.7.0-4-any.pkg.tar.zst |
|
78 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-python-3.10.8-2-any.pkg.tar.zst |
|
79 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-rav1e-0.6.1-1-any.pkg.tar.zst |
|
80 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-SDL2-2.26.0-1-any.pkg.tar.zst |
|
81 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-SDL2_image-2.6.2-3-any.pkg.tar.zst |
|
82 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-SDL2_mixer-2.6.2-1-any.pkg.tar.zst |
|
83 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-SDL2_ttf-2.20.1-1-any.pkg.tar.zst |
|
84 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-sqlite3-3.40.0-1-any.pkg.tar.zst |
|
85 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-svt-av1-1.3.0-1-any.pkg.tar.zst |
|
86 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-tcl-8.6.12-1-any.pkg.tar.zst |
|
87 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-tzdata-2022g-1-any.pkg.tar.zst |
|
88 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-vulkan-headers-1.3.236-1-any.pkg.tar.zst |
|
89 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-vulkan-loader-1.3.236-1-any.pkg.tar.zst |
|
90 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-wineditline-2.205-3-any.pkg.tar.xz |
|
91 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-xz-5.2.9-1-any.pkg.tar.zst |
|
92 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-zlib-1.2.13-2-any.pkg.tar.zst |
|
93 |
-https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-zstd-1.5.2-2-any.pkg.tar.zst |
|
94 |
-https://mirror.msys2.org/msys/x86_64/msys2-w32api-headers-10.0.0.r16.g49a56d453-1-x86_64.pkg.tar.zst |
|
95 |
-https://mirror.msys2.org/msys/x86_64/msys2-w32api-runtime-10.0.0.r16.g49a56d453-1-x86_64.pkg.tar.zst |
|
96 |
-EOF |
|
97 |
-for i in $(cat deps.txt) ; do |
|
98 |
- if [ ! -e ../zig-dl/$(basename $i) ] ; then |
|
99 |
- (cd ../zig-dl && wget $i ) |
|
100 |
- fi |
|
101 |
-done |
|
102 |
-for i in $(cd ../zig-dl && find . -maxdepth 1 -name "*.zst") ; do |
|
103 |
- ( mkdir -p t ; cd t ; cat ../../zig-dl/$i | zstd -dc | tar -xvf - ; find . -maxdepth 1 -type d -print | grep -v "^\.\$" | while read l ; do |
|
104 |
- (cd $l && tar -cf - . | (cd $parentdir/zig/windows-msys2-mingw && tar -xvf - ) ) ; done ) ; rm -rf t ; done |
|
105 |
-for i in $(cd ../zig-dl && find . -maxdepth 1 -name "*.xz") ; do |
|
106 |
- ( mkdir -p t ; cd t ; cat ../../zig-dl/$i | xz -dc | tar -xvf - ; find . -maxdepth 1 -type d -print | grep -v "^\.\$" | while read l ; do |
|
107 |
- (cd $l && tar -cf - . | (cd $parentdir/zig/windows-msys2-mingw && tar -xvf - ) ) ; done ) ; rm -rf t ; done |
|
108 |
-cat > add-zst.sh <<'EOF' |
|
109 |
-#!/bin/bash |
|
110 |
-if [ "m$1" == "m" ] || [ "m$1" == "m--help" ] || [ ! -f "$1" ] ; then |
|
111 |
- echo "Syntax: $0 filename.pkg.tar.zst" |
|
112 |
- exit 0 |
|
113 |
-fi |
|
114 |
-i="$1" |
|
115 |
-( mkdir -p t ; cd t ; cat ../$i | zstd -dc | tar -xvf - ; find . -maxdepth 1 -type d -print | grep -v "^\.\$" | while read l ; do |
|
116 |
-EOF |
|
117 |
-echo " (cd \$l && tar -cf - . | (cd $parentdir/zig/windows-msys2-mingw && tar -xvf - ) ) ; done ) ; rm -rf t " >> add-zst.sh |
|
118 |
-cat > add-xz.sh <<'EOF' |
|
119 |
-#!/bin/bash |
|
120 |
-if [ "m$1" == "m" ] || [ "m$1" == "m--help" ] || [ ! -f "$1" ] ; then |
|
121 |
- echo "Syntax: $0 filename.pkg.tar.xz" |
|
122 |
- exit 0 |
|
123 |
-fi |
|
124 |
-i="$1" |
|
125 |
-( mkdir -p t ; cd t ; cat ../$i | xz -dc | tar -xvf - ; find . -maxdepth 1 -type d -print | grep -v "^\.\$" | while read l ; do |
|
126 |
-EOF |
|
127 |
-echo " (cd $l && tar -cf - . | (cd $parentdir/zig/windows-msys2-mingw && tar -xvf - ) ) ; done ) ; rm -rf t " >> add-xz.sh |
|
128 |
-chmod a+x add-xz.sh add-zst.sh |
|
129 |
-# Check for windres |
|
130 |
-if ! which x86_64-w64-mingw32-windres >/dev/null 2>/dev/null; then |
|
131 |
- echo "Please, install windres manually using your distribution, i.e.:" |
|
132 |
- echo "sudo apt-get install binutils-mingw-w64-x86-64" |
|
133 |
-fi |
|
134 |
-if ! which convert >/dev/null 2>/dev/null; then |
|
135 |
- echo "Please, install imagemagick manually using your distribution, i.e.:" |
|
136 |
- echo "sudo apt-get install imagemagick" |
|
137 |
-fi |
|
138 |
- |
|
139 |
-echo "" |
|
140 |
-echo "Installation complete." |
|
141 |
-echo "To use the zig toolchain, first include env.sh with \". zig/env.sh\"" |
1 | 1 |
new file mode 100755 |
... | ... |
@@ -0,0 +1,141 @@ |
1 |
+#!/bin/bash |
|
2 |
+zigbuild=zig-linux-x86_64-0.11.0-dev.514+4be1bb4aa.tar.xz |
|
3 |
+zigversion=$(echo $zigbuild | cut -d '-' -f 4) |
|
4 |
+if [ -e zig ] ; then |
|
5 |
+ echo "ERROR: A zig directory already exists, aborting install" |
|
6 |
+ exit 1 |
|
7 |
+fi |
|
8 |
+parentdir=$(pwd) |
|
9 |
+mkdir -p zig zig-dl |
|
10 |
+cd zig |
|
11 |
+ |
|
12 |
+# Zig install |
|
13 |
+if [ ! -e ../zig-dl/$zigbuild ] ; then |
|
14 |
+ (cd ../zig-dl && wget https://ziglang.org/builds/$zigbuild) |
|
15 |
+fi |
|
16 |
+xz -dc <../zig-dl/$zigbuild | tar -xvf - |
|
17 |
+ln -s ${zigbuild/.tar.xz/} zig-$zigversion |
|
18 |
+cat > env.sh <<'EOF' |
|
19 |
+#!/bin/bash |
|
20 |
+echo "Reminder: this script has to be used with source (.) instead of exec" |
|
21 |
+EOF |
|
22 |
+echo "export PATH=\$PATH:$parentdir/zig/zig-$zigversion" >> env.sh |
|
23 |
+chmod 755 env.sh |
|
24 |
+# msys2 install |
|
25 |
+mkdir -p windows-msys2-mingw |
|
26 |
+cat > deps.txt <<'EOF' |
|
27 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-aom-3.5.0-1-any.pkg.tar.zst |
|
28 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-brotli-1.0.9-5-any.pkg.tar.zst |
|
29 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-bzip2-1.0.8-2-any.pkg.tar.zst |
|
30 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-ca-certificates-20211016-3-any.pkg.tar.zst |
|
31 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-dav1d-1.0.0-1-any.pkg.tar.zst |
|
32 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-expat-2.5.0-1-any.pkg.tar.zst |
|
33 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-flac-1.4.2-1-any.pkg.tar.zst |
|
34 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-fluidsynth-2.3.0-1-any.pkg.tar.zst |
|
35 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-freetype-2.12.1-1-any.pkg.tar.zst |
|
36 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-gcc-libs-12.2.0-6-any.pkg.tar.zst |
|
37 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-gettext-0.21-3-any.pkg.tar.zst |
|
38 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-giflib-5.2.1-3-any.pkg.tar.zst |
|
39 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-glib2-2.74.3-1-any.pkg.tar.zst |
|
40 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-gmp-6.2.1-3-any.pkg.tar.zst |
|
41 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-graphite2-1.3.14-2-any.pkg.tar.zst |
|
42 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-harfbuzz-5.3.1-2-any.pkg.tar.zst |
|
43 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-highway-1.0.2-1-any.pkg.tar.zst |
|
44 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-imath-3.1.6-1-any.pkg.tar.zst |
|
45 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-jbigkit-2.1-4-any.pkg.tar.xz |
|
46 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-lcms2-2.14-1-any.pkg.tar.zst |
|
47 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-lerc-4.0.0-1-any.pkg.tar.zst |
|
48 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libavif-0.11.1-3-any.pkg.tar.zst |
|
49 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libdeflate-1.15-1-any.pkg.tar.zst |
|
50 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libffi-3.4.4-1-any.pkg.tar.zst |
|
51 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libiconv-1.17-1-any.pkg.tar.zst |
|
52 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libjpeg-turbo-2.1.4-1-any.pkg.tar.zst |
|
53 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libjxl-0.7.0-2-any.pkg.tar.zst |
|
54 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libmodplug-0.8.9.0-4-any.pkg.tar.zst |
|
55 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libogg-1.3.5-1-any.pkg.tar.zst |
|
56 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libpng-1.6.39-1-any.pkg.tar.zst |
|
57 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libsndfile-1.1.0-3-any.pkg.tar.zst |
|
58 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libsystre-1.0.1-4-any.pkg.tar.xz |
|
59 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libtasn1-4.19.0-1-any.pkg.tar.zst |
|
60 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libtiff-4.4.0-6-any.pkg.tar.zst |
|
61 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libtre-git-r128.6fb7206-2-any.pkg.tar.xz |
|
62 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libvorbis-1.3.7-1-any.pkg.tar.zst |
|
63 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libwebp-1.2.4-2-any.pkg.tar.zst |
|
64 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libwinpthread-git-10.0.0.r157.gd295924f0-1-any.pkg.tar.zst |
|
65 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-libyuv-1844.r2374.f9fda6e7-1-any.pkg.tar.zst |
|
66 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-mpc-1.2.1-1-any.pkg.tar.zst |
|
67 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-mpdecimal-2.5.1-1-any.pkg.tar.zst |
|
68 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-mpfr-4.1.0.p13-1-any.pkg.tar.zst |
|
69 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-mpg123-1.31.1-1-any.pkg.tar.zst |
|
70 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-ncurses-6.3-6-any.pkg.tar.zst |
|
71 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-openexr-3.1.5-2-any.pkg.tar.zst |
|
72 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-openssl-1.1.1.s-1-any.pkg.tar.zst |
|
73 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-opus-1.3.1-5-any.pkg.tar.zst |
|
74 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-opusfile-0.12-2-any.pkg.tar.zst |
|
75 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-p11-kit-0.24.1-3-any.pkg.tar.zst |
|
76 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-pcre2-10.40-1-any.pkg.tar.zst |
|
77 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-portaudio-1~19.7.0-4-any.pkg.tar.zst |
|
78 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-python-3.10.8-2-any.pkg.tar.zst |
|
79 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-rav1e-0.6.1-1-any.pkg.tar.zst |
|
80 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-SDL2-2.26.0-1-any.pkg.tar.zst |
|
81 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-SDL2_image-2.6.2-3-any.pkg.tar.zst |
|
82 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-SDL2_mixer-2.6.2-1-any.pkg.tar.zst |
|
83 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-SDL2_ttf-2.20.1-1-any.pkg.tar.zst |
|
84 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-sqlite3-3.40.0-1-any.pkg.tar.zst |
|
85 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-svt-av1-1.3.0-1-any.pkg.tar.zst |
|
86 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-tcl-8.6.12-1-any.pkg.tar.zst |
|
87 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-tzdata-2022g-1-any.pkg.tar.zst |
|
88 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-vulkan-headers-1.3.236-1-any.pkg.tar.zst |
|
89 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-vulkan-loader-1.3.236-1-any.pkg.tar.zst |
|
90 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-wineditline-2.205-3-any.pkg.tar.xz |
|
91 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-xz-5.2.9-1-any.pkg.tar.zst |
|
92 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-zlib-1.2.13-2-any.pkg.tar.zst |
|
93 |
+https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-zstd-1.5.2-2-any.pkg.tar.zst |
|
94 |
+https://mirror.msys2.org/msys/x86_64/msys2-w32api-headers-10.0.0.r16.g49a56d453-1-x86_64.pkg.tar.zst |
|
95 |
+https://mirror.msys2.org/msys/x86_64/msys2-w32api-runtime-10.0.0.r16.g49a56d453-1-x86_64.pkg.tar.zst |
|
96 |
+EOF |
|
97 |
+for i in $(cat deps.txt) ; do |
|
98 |
+ if [ ! -e ../zig-dl/$(basename $i) ] ; then |
|
99 |
+ (cd ../zig-dl && wget $i ) |
|
100 |
+ fi |
|
101 |
+done |
|
102 |
+for i in $(cd ../zig-dl && find . -maxdepth 1 -name "*.zst") ; do |
|
103 |
+ ( mkdir -p t ; cd t ; cat ../../zig-dl/$i | zstd -dc | tar -xvf - ; find . -maxdepth 1 -type d -print | grep -v "^\.\$" | while read l ; do |
|
104 |
+ (cd $l && tar -cf - . | (cd $parentdir/zig/windows-msys2-mingw && tar -xvf - ) ) ; done ) ; rm -rf t ; done |
|
105 |
+for i in $(cd ../zig-dl && find . -maxdepth 1 -name "*.xz") ; do |
|
106 |
+ ( mkdir -p t ; cd t ; cat ../../zig-dl/$i | xz -dc | tar -xvf - ; find . -maxdepth 1 -type d -print | grep -v "^\.\$" | while read l ; do |
|
107 |
+ (cd $l && tar -cf - . | (cd $parentdir/zig/windows-msys2-mingw && tar -xvf - ) ) ; done ) ; rm -rf t ; done |
|
108 |
+cat > add-zst.sh <<'EOF' |
|
109 |
+#!/bin/bash |
|
110 |
+if [ "m$1" == "m" ] || [ "m$1" == "m--help" ] || [ ! -f "$1" ] ; then |
|
111 |
+ echo "Syntax: $0 filename.pkg.tar.zst" |
|
112 |
+ exit 0 |
|
113 |
+fi |
|
114 |
+i="$1" |
|
115 |
+( mkdir -p t ; cd t ; cat ../$i | zstd -dc | tar -xvf - ; find . -maxdepth 1 -type d -print | grep -v "^\.\$" | while read l ; do |
|
116 |
+EOF |
|
117 |
+echo " (cd \$l && tar -cf - . | (cd $parentdir/zig/windows-msys2-mingw && tar -xvf - ) ) ; done ) ; rm -rf t " >> add-zst.sh |
|
118 |
+cat > add-xz.sh <<'EOF' |
|
119 |
+#!/bin/bash |
|
120 |
+if [ "m$1" == "m" ] || [ "m$1" == "m--help" ] || [ ! -f "$1" ] ; then |
|
121 |
+ echo "Syntax: $0 filename.pkg.tar.xz" |
|
122 |
+ exit 0 |
|
123 |
+fi |
|
124 |
+i="$1" |
|
125 |
+( mkdir -p t ; cd t ; cat ../$i | xz -dc | tar -xvf - ; find . -maxdepth 1 -type d -print | grep -v "^\.\$" | while read l ; do |
|
126 |
+EOF |
|
127 |
+echo " (cd $l && tar -cf - . | (cd $parentdir/zig/windows-msys2-mingw && tar -xvf - ) ) ; done ) ; rm -rf t " >> add-xz.sh |
|
128 |
+chmod a+x add-xz.sh add-zst.sh |
|
129 |
+# Check for windres |
|
130 |
+if ! which x86_64-w64-mingw32-windres >/dev/null 2>/dev/null; then |
|
131 |
+ echo "Please, install windres manually using your distribution, i.e.:" |
|
132 |
+ echo "sudo apt-get install binutils-mingw-w64-x86-64" |
|
133 |
+fi |
|
134 |
+if ! which convert >/dev/null 2>/dev/null; then |
|
135 |
+ echo "Please, install imagemagick manually using your distribution, i.e.:" |
|
136 |
+ echo "sudo apt-get install imagemagick" |
|
137 |
+fi |
|
138 |
+ |
|
139 |
+echo "" |
|
140 |
+echo "Installation complete." |
|
141 |
+echo "To use the zig toolchain, first include env.sh with \". zig/env.sh\"" |