P in progs.csv for pycuck packages

This commit is contained in:
Luke Smith 2019-03-02 18:09:47 -05:00
parent 22afaac00f
commit 642000aaa8
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -97,6 +97,12 @@ aurinstall() { \
sudo -u "$name" $aurhelper -S --noconfirm "$1" >/dev/null 2>&1 sudo -u "$name" $aurhelper -S --noconfirm "$1" >/dev/null 2>&1
} }
pipinstall() { \
dialog --title "LARBS Installation" --infobox "Installing the Python package \`$1\` ($n of $total). $1 $2" 5 70
command -v pip || pacman -S --noconfirm --needed python-pip >/dev/null 2>&1
yes | pip install "$1"
}
installationloop() { \ installationloop() { \
([ -f "$progsfile" ] && cp "$progsfile" /tmp/progs.csv) || curl -Ls "$progsfile" | sed '/^#/d' > /tmp/progs.csv ([ -f "$progsfile" ] && cp "$progsfile" /tmp/progs.csv) || curl -Ls "$progsfile" | sed '/^#/d' > /tmp/progs.csv
total=$(wc -l < /tmp/progs.csv) total=$(wc -l < /tmp/progs.csv)
@ -108,6 +114,7 @@ installationloop() { \
"") maininstall "$program" "$comment" ;; "") maininstall "$program" "$comment" ;;
"A") aurinstall "$program" "$comment" ;; "A") aurinstall "$program" "$comment" ;;
"G") gitmakeinstall "$program" "$comment" ;; "G") gitmakeinstall "$program" "$comment" ;;
"P") pipinstall "$program" "$comment" ;;
esac esac
done < /tmp/progs.csv ;} done < /tmp/progs.csv ;}