fix(dist/arch): remove package suggestion messages

lspci may not be present in the build environment (especially if
building in a chroot)
This commit is contained in:
peelz 2024-09-25 18:22:13 -04:00
commit 00fe6130fe

19
dist/arch/PKGBUILD vendored
View file

@ -61,25 +61,6 @@ build() {
package() {
meson install -C build --no-rebuild --destdir "${pkgdir}"
# We will check for optional packages here:
# Check for NVIDIA GPU and if monado-vulkan-layers-git is not already installed
if lspci | grep -qi nvidia && ! pacman -Qm monado-vulkan-layers-git &>/dev/null; then
printf "\033[0;31m" # red
echo -e "\n"
echo "An NVIDIA GPU has been detected on your system."
echo "For NVIDIA GPU, 'monado-vulkan-layers-git' from the AUR is recommended."
echo "Please install it manually using an AUR helper, e.g., yay -S monado-vulkan-layers-git"
printf "\033[0m" # no color
fi
# Ask to install libudev0-shim
if ! pacman -Q libudev0-shim &>/dev/null; then
printf "\033[0;31m" # red
echo -e "\n"
echo "The package 'libudev0-shim' is recommended for lighthouse driver support."
printf "\033[0m" # no color
fi
}