Skip to content

Instantly share code, notes, and snippets.

@ashevchuk
Forked from tadly/pacaur_install.sh
Last active March 8, 2019 17:18
Show Gist options
  • Save ashevchuk/f801eaad5159135d5d36d6dee95f3a14 to your computer and use it in GitHub Desktop.
Save ashevchuk/f801eaad5159135d5d36d6dee95f3a14 to your computer and use it in GitHub Desktop.
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
# Run the following from a terminal to install pacaur:
# $ curl -s https://gist.githubusercontent.com/ashevchuk/f801eaad5159135d5d36d6dee95f3a14/raw/pacaur_install.sh | sh
echo "Checking for system updates..."
sudo pacman -Syu
WORKDIR=$(mktemp -d /tmp/pacaur_install.XXXXXXXXX)
mkdir -p ${WORKDIR}
cd ${WORKDIR}
sudo pacman -S base-devel fakeroot expac yajl jq git meson gtest gmock --noconfirm --needed
AURPACKAGES=( cower auracle-git pacaur )
for pkg in "${AURPACKAGES[@]}"
do
if [ ! -n "$(pacman -Qs ${pkg})" ]; then
curl -s https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=${pkg} | makepkg -f --skippgpcheck
sudo pacman -U ${pkg}*.tar.xz --noconfirm
fi
done
# Clean up...
cd -
rm -rf ${WORKDIR}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment