Added routine for manual package installation

master
Toerd 6 years ago
parent 92d6b65ed2
commit 808ddd074a

@ -20,8 +20,10 @@ repo=${repo:="https://toerd@bitbucket.org/toerd/dotfiles"}
prog=${prog:="$HOME/install/pack.list"} prog=${prog:="$HOME/install/pack.list"}
aurhelper=${aurhelper:="yay"} aurhelper=${aurhelper:="yay"}
logfile=${logfile:="$HOME/install/install.log"} logfile=${logfile:="$HOME/install/install.log"}
scriptdir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
if [ -z ${v+x} ]; then logfile="/dev/null" if [ -z ${v+x} ]; then
logfile="/dev/null"
fi fi
startup_msg() { startup_msg() {
@ -76,9 +78,9 @@ install_aur() {
sudo -u $uname $aurhelper -S --noconfirm "$1" $>$logfile sudo -u $uname $aurhelper -S --noconfirm "$1" $>$logfile
} }
install_from_source() { install_manual() {
dialog --title "Manual packages" --infobox "Manual Package $n/$ms\n\nInstalling: $1\n\n> $2 <" 0 0 dialog --title "Manual packages" --infobox "Manual Package $n/$ms\n\nInstalling: $1\n\n> $2 <" 0 0
cd "$1" || exit cd "$scriptdir/packages/$1" || exit
make clean && make && sudo -u $uname make install &>$logfile ; make clean && make && sudo -u $uname make install &>$logfile ;
cd "/home/$uname" || exit cd "/home/$uname" || exit
} }
@ -111,6 +113,7 @@ installation_loop() {
case $prefix in case $prefix in
P) install_pacman "$program" "$info" ;; P) install_pacman "$program" "$info" ;;
A) install_aur "$program" "$info" ;; A) install_aur "$program" "$info" ;;
M) install_manual "$program" "$info" ;;
esac esac
done < /tmp/pack.list done < /tmp/pack.list
} }

Loading…
Cancel
Save