Install AUR package manually from Git mirror
The easy way to install an Arch User Repository (AUR) package manually, without using an AUR helper such as yay/paru. This can done while the AUR is down/unavailable, as long as any mirror is reachable.
Here I’ll use the AUR Github mirror for example:
#!/usr/bin/env bash
# Install AUR package from git mirror
PKG_NAME=$1
git clone --branch $PKG_NAME --single-branch https://github.com/archlinux/aur.git
cd aur
makepkg -si
That’s it. You can now manage/update/remove the package like any other installed package with pacman/yay/paru/etc.