Enable multilib before installing Steam

This commit is contained in:
SirBlob committed 2026-10-03 20:51:08 -04:00
1 parent 00e6038706
commit 9c1180bf02
4 files changed
+36 -1

No files matched your search

+4 -1
View File
@@ -27,4 +27,7 @@ elif blob-hw-nvidia-without-gsp; then
PACKAGES+=(lib32-nvidia-580xx-utils)
fi
(( ${#PACKAGES[@]} > 0 )) && blob-pkg-add "${PACKAGES[@]}"
if (( ${#PACKAGES[@]} > 0 )); then
blob-pkg-multilib
blob-pkg-add "${PACKAGES[@]}"
fi
+1
View File
@@ -6,6 +6,7 @@
set -e
echo "Installing Steam..."
blob-pkg-multilib
blob-pkg-add steam
blob-install-gaming-gpu-lib32
+30
View File
@@ -0,0 +1,30 @@
#!/bin/bash
# blob:summary=Enable the multilib repository in pacman.conf if it is disabled
# blob:requires-sudo=true
pacman_conf=/etc/pacman.conf
multilib_enabled() {
grep -q '^\[multilib\]' "$pacman_conf"
}
as_root() {
if (( EUID == 0 )); then
"$@"
else
sudo "$@"
fi
}
multilib_enabled && exit 0
echo "Enabling the multilib repository..."
as_root sed -i '/^#\[multilib\]$/,/^#Include/ s/^#//' "$pacman_conf"
if ! multilib_enabled; then
echo -e "\033[31mError: Could not enable multilib in $pacman_conf\033[0m" >&2
exit 1
fi
as_root pacman -Syu --noconfirm