From 03f18053bb08b206eabb4418a554c255cfdb0d83 Mon Sep 17 00:00:00 2001 From: aryal <141743392+aryalaadi@users.noreply.github.com> Date: Sat, 2 Mar 2024 06:32:59 +0545 Subject: [PATCH] Add Void Linux support to `script/linux` (#8664) add support for the xbps package manager in the system library setup script --- script/linux | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/script/linux b/script/linux index 5c55717011..b5bd621b0d 100755 --- a/script/linux +++ b/script/linux @@ -63,4 +63,19 @@ if [[ -n $pacman ]]; then exit 0 fi +# Void +# https://voidlinux.org/packages/ +xbps=$(command -v xbps-install || true) +if [[ -n $xbps ]]; then + deps=( + alsa-lib-devel + fontconfig-devel + wayland-devel + libxkbcommon-devel + openssl-devel + ) + $maysudo "$xbps" -Syu "${deps[@]}" + exit 0 +fi + echo "Unsupported Linux distribution in script/linux"