Skip to content

Instantly share code, notes, and snippets.

@Zirak
Created November 9, 2012 18:33
Show Gist options
  • Save Zirak/4047387 to your computer and use it in GitHub Desktop.
Save Zirak/4047387 to your computer and use it in GitHub Desktop.
#!/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