Created
November 9, 2012 18:33
-
-
Save Zirak/4047387 to your computer and use it in GitHub Desktop.
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/bash | |
#a small script to automate installing from downloaded AUR tarballs | |
if [ ! -f $1 ] | |
then | |
echo "File $1 does not exist" 1>&2 | |
exit | |
fi | |
base=$(basename -s '.tar.gz' $1) #meh | |
tar -xzf $1 | |
cd $base | |
makepkg -s | |
makepkg -i | |
cd .. | |
rm -r $base |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment