commit 642000aaa88ac5e3db8f407acf83c98accb590b4
parent 22afaac00f161eb787642e43cdc15c197e20c00d
Author: Luke Smith <luke@lukesmith.xyz>
Date: Sat, 2 Mar 2019 18:09:47 -0500
P in progs.csv for pycuck packages
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/larbs.sh b/larbs.sh
@@ -97,6 +97,12 @@ aurinstall() { \
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() { \
([ -f "$progsfile" ] && cp "$progsfile" /tmp/progs.csv) || curl -Ls "$progsfile" | sed '/^#/d' > /tmp/progs.csv
total=$(wc -l < /tmp/progs.csv)
@@ -108,6 +114,7 @@ installationloop() { \
"") maininstall "$program" "$comment" ;;
"A") aurinstall "$program" "$comment" ;;
"G") gitmakeinstall "$program" "$comment" ;;
+ "P") pipinstall "$program" "$comment" ;;
esac
done < /tmp/progs.csv ;}