Add Void Linux support to `script/linux` (#8664)

aryal created

add support for the xbps package manager in the system library setup
script

Change summary

script/linux | 15 +++++++++++++++
1 file changed, 15 insertions(+)

Detailed changes

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"