1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-07 18:00:24 +00:00

Merge pull request #48 from logenkain/development

Add voidlinux support to installer
This commit is contained in:
Fellippe Heitor 2020-03-21 08:54:26 -03:00 committed by GitHub
commit 702e0f708a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,6 +53,7 @@ fi
#Linux Mint = linuxmint #Linux Mint = linuxmint
#Ubuntu = ubuntu #Ubuntu = ubuntu
#Slackware = slackware #Slackware = slackware
#VoidLinux = voidlinux
#XUbuntu = ubuntu #XUbuntu = ubuntu
#Zorin = Zorin #Zorin = Zorin
if [ -n "$lsb_command" ]; then if [ -n "$lsb_command" ]; then
@ -88,6 +89,13 @@ elif [ "$DISTRO" == "fedora" ] || [ "$DISTRO" == "redhat" ] || [ "$DISTRO" == "c
installed_packages=`yum list installed` installed_packages=`yum list installed`
installer_command="sudo yum install " installer_command="sudo yum install "
pkg_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 |grep -v libgcc`
installer_command="sudo xbps-install -Sy "
pkg_install
elif [ -z "$DISTRO" ]; then elif [ -z "$DISTRO" ]; then
echo "Unable to detect distro, skipping package installation" echo "Unable to detect distro, skipping package installation"
echo "Please be aware that for QB64 to compile, you will need the following installed:" echo "Please be aware that for QB64 to compile, you will need the following installed:"