Always install base-devel in case yay needs to build a package (#710)

This commit is contained in:
Dylan Bridgman 2025-08-12 15:54:29 +02:00 committed by GitHub
parent b15dde2dc9
commit f0f4569aa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,8 @@
#!/bin/bash
# Install build tools
sudo pacman -Sy --needed --noconfirm base-devel
# Only add Chaotic-AUR if the architecture is x86_64 so ARM users can build the packages
if [[ "$(uname -m)" == "x86_64" ]] && ! command -v yay &>/dev/null; then
# Try installing Chaotic-AUR keyring and mirrorlist
@ -23,8 +26,6 @@ fi
# Manually install yay from AUR if not already available
if ! command -v yay &>/dev/null; then
# Install build tools
sudo pacman -Sy --needed --noconfirm base-devel
cd /tmp
rm -rf yay-bin
git clone https://aur.archlinux.org/yay-bin.git