Last active
May 16, 2019 02:57
-
-
Save hlissner/c970677aff300f3227fe75221adec7f8 to your computer and use it in GitHub Desktop.
Install pacaur on Arch Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ! command -v pacaur >/dev/null; then | |
tmp=$(mktemp -d) | |
function finish { | |
rm -rf "$tmp" | |
} | |
trap finish EXIT | |
pushd $tmp | |
for pkg in cower pacaur; do | |
curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=$pkg && \ | |
makepkg --needed --noconfirm --skippgpcheck -sri | |
done | |
popd | |
if ! command -v pacaur >/dev/null; then | |
>&2 echo "Pacaur wasn't successfully installed" | |
exit 1 | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I no longer use pacaur, I've switched to yay.