Skip to content

Instantly share code, notes, and snippets.

@jesseerwin
Last active February 9, 2018 15:17
Show Gist options
  • Save jesseerwin/5cf75e8d3d0060fecf251714e1e3a91b to your computer and use it in GitHub Desktop.
Save jesseerwin/5cf75e8d3d0060fecf251714e1e3a91b to your computer and use it in GitHub Desktop.
#!/bin/bash
#Delete remnants of last install
rm -rf /home/thejerwin/tmp-aur
#Clone the repo
read -p "Type the package to be installed.. " PACKAGE
echo Package $PACKAGE will be installed..
git clone https://aur.archlinux.org/$PACKAGE.git /home/thejerwin/tmp-aur
#Install PKGBUILD
cd /home/thejerwin/tmp-aur
read -p "Would you like to continue building $PACKAGE? " CHOICE
if [ $CHOICE="Y" ] then
makepkg -si
else
exit
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment