diff options
Diffstat (limited to 'aurinstall.sh')
| -rwxr-xr-x | aurinstall.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/aurinstall.sh b/aurinstall.sh new file mode 100755 index 0000000..22656ae --- /dev/null +++ b/aurinstall.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +InstallFromAur() { + local package_url="https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=$1" + local working_dir=${PWD} + local temp_dir=`mktemp -d` + cd ${temp_dir} + wget -O ${temp_dir}/PKGBUILD ${package_url} -nv + makepkg + sudo pacman -U `ls *.tar*` + rm ${temp_dir} -rf + cd ${working_dir} +} + +for package in "$@" +do + InstallFromAur "${package}" +done |
