#!/bin/bash
cd `mktemp -d`
curl "https://aur.archlinux.org/packages/`expr substr $1 1 2`/$1/$1.tar.gz" | tar xz
cd $1
makepkg -si

#!/bin/sh
for var
do
cd `mktemp -d`
curl "https://aur.archlinux.org/packages/`expr substr $var 1 2`/$var/$var.tar.gz" | tar xz
cd $var
makepkg -si
done

Handle all variables on the command line
Handle all variables on the command line
