source $(dirname $0)/package-list.bash for p in "${!packages[@]}"; do if [[ -d "$p" ]]; then cd "$p" (makepkg --nobuild 2>/dev/null) & cd - 2>/dev/null fi done wait echo done