[Linux] Actually install deps in arch_deps

This commit is contained in:
Ivan Malison 2017-02-21 20:21:30 -08:00
parent 78f588c06a
commit cc8e45b128
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1,4 +1,9 @@
#!/usr/bin/env zsh #!/usr/bin/env sh
indirect_expand() {
eval "value=\"\${$1}\""
echo $value
}
ESSENTIAL=( ESSENTIAL=(
"lightdm-git" "zsh", "git" "emacs-git" "autoconf" "pkg-config" "pyenv" "lightdm-git" "zsh", "git" "emacs-git" "autoconf" "pkg-config" "pyenv"
@ -26,3 +31,12 @@ NVIDIA=(
MACBOOK=( MACBOOK=(
"broadcom-wl-dkms" "pommed-light" "batterymon-clone" "broadcom-wl-dkms" "pommed-light" "batterymon-clone"
) )
install_deps() {
for dependency in indirect_expand "${1-ESSENTIAL}"
do
pacaur -S $dependency --noconfirm
done
}
install_deps "$@"