From 83ffb01d1330d7c59014245c205b1862a6826773 Mon Sep 17 00:00:00 2001 From: Logen Kain Date: Sat, 21 Mar 2020 00:13:29 -0400 Subject: [PATCH] Add VoidLinux support --- setup_lnx.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup_lnx.sh b/setup_lnx.sh index 101db287e..0e524b62b 100755 --- a/setup_lnx.sh +++ b/setup_lnx.sh @@ -53,6 +53,7 @@ fi #Linux Mint = linuxmint #Ubuntu = ubuntu #Slackware = slackware +#VoidLinux = voidlinux #XUbuntu = ubuntu #Zorin = Zorin if [ -n "$lsb_command" ]; then @@ -88,6 +89,13 @@ elif [ "$DISTRO" == "fedora" ] || [ "$DISTRO" == "redhat" ] || [ "$DISTRO" == "c installed_packages=`yum list installed` installer_command="sudo yum install " pkg_install +elif [ "$DISTRO" == "voidlinux" ]; then + echo "VoidLinux detected." + pkg_list="gcc glu-devel zlib-devel alsa-lib-devel $GET_WGET" + installed_packages=`xbps-query -l` + installer_command="sudo xbps-install -Sy " + pkg_install + elif [ -z "$DISTRO" ]; then echo "Unable to detect distro, skipping package installation" echo "Please be aware that for QB64 to compile, you will need the following installed:"