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
+1
View File
@@ -379,6 +379,7 @@ of the `blob` listing.
| `blob-pkg-drop` | Remove all the named packages from the system if they're installed (otherwise ignore). | <packages...> |
| `blob-pkg-install` | Show a fuzzy-finder TUI for picking new Arch and OPR packages to install. | - |
| `blob-pkg-missing` | Returns true if any of the named packages are missing from the system (or false if they're all there). | <packages...> |
| `blob-pkg-multilib` | Enable the multilib repository in pacman.conf if it is disabled | - |
| `blob-pkg-present` | Returns true if all of the named packages are installed on the system (or false if any of them are missing). | <packages...> |
| `blob-pkg-remove` | Show a fuzzy-finder TUI for picking packages installed on the system to be removed. | - |