File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2727# # and limitations under the License.
2828# ###############################################################################################
2929
30+ GLIB_VERSION=2.86.3
31+
3032set -e # break on error
3133# If run standalone, check environment. Otherwise, use info from main install script
3234if [ -z " $FAMILY " ]; then
@@ -41,15 +43,15 @@ section_header "Installing glib"
4143STATUS=" glib"
4244cd " $RISCV "
4345if [ ! -e " $RISCV " /include/glib-2.0 ]; then
44- wget -nv --retry-connrefused $retry_on_host_error --output-document=glib.tar.xz https://download.gnome.org/sources/glib/2.86 /glib-2.86.3 .tar.xz
46+ wget -nv --retry-connrefused $retry_on_host_error --output-document=glib.tar.xz https://download.gnome.org/sources/glib/${GLIB_VERSION % . * } /glib-$GLIB_VERSION .tar.xz
4547 tar -xJf glib.tar.xz
4648 rm -f glib.tar.xz
47- cd glib
49+ cd glib- $GLIB_VERSION
4850 uvx meson setup _build --prefix=" $RISCV "
4951 uvx meson compile -C _build -j " ${NUM_THREADS} " 2>&1 | logger; [ " ${PIPESTATUS[0]} " == 0 ]
5052 uvx meson install -C _build 2>&1 | logger; [ " ${PIPESTATUS[0]} " == 0 ]
5153 cd " $RISCV "
52- rm -rf glib
54+ rm -rf glib- $GLIB_VERSION
5355 echo -e " ${SUCCESS_COLOR} glib successfully installed!${ENDC} "
5456else
5557 echo -e " ${OK_COLOR} glib already installed.${ENDC} "
You can’t perform that action at this time.
0 commit comments