Skip to content

Instantly share code, notes, and snippets.

@ahnan4arch
Forked from hlissner/install-pacaur.sh
Created October 19, 2017 05:03
Show Gist options
  • Select an option

  • Save ahnan4arch/ece52e6c849eb7be67c617eada57ed8d to your computer and use it in GitHub Desktop.

Select an option

Save ahnan4arch/ece52e6c849eb7be67c617eada57ed8d to your computer and use it in GitHub Desktop.
Install pacaur on Arch Linux
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