-
-
Save ashevchuk/f801eaad5159135d5d36d6dee95f3a14 to your computer and use it in GitHub Desktop.
A simple shell script to quickly / easily install "pacaur" on archlinux
This file contains 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
#!/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