Remove gitmakeinstall

This commit is contained in:
Petar Kapriš 2025-04-20 21:19:26 +02:00
parent b9212f33b5
commit 6acedc25ac

19
bs.sh
View file

@ -197,24 +197,6 @@ maininstall() {
installpkg "$1" installpkg "$1"
} }
gitmakeinstall() {
progname="${1##*/}"
progname="${progname%.git}"
dir="$repodir/$progname"
whiptail --title "LARBS Installation" \
--infobox "Installing \`$progname\` ($n of $total) via \`git\` and \`make\`. $(basename "$1") $2" 8 70
sudo -u "$name" git -C "$repodir" clone --depth 1 --single-branch \
--no-tags -q "$1" "$dir" ||
{
cd "$dir" || return 1
sudo -u "$name" git pull --force origin master
}
cd "$dir" || exit 1
make >/dev/null 2>&1
make install >/dev/null 2>&1
cd /tmp || return 1
}
aurinstall() { aurinstall() {
whiptail --title "LARBS Installation" \ whiptail --title "LARBS Installation" \
--infobox "Installing \`$1\` ($n of $total) from the AUR. $1 $2" 9 70 --infobox "Installing \`$1\` ($n of $total) from the AUR. $1 $2" 9 70
@ -240,7 +222,6 @@ installationloop() {
comment="$(echo "$comment" | sed -E "s/(^\"|\"$)//g")" comment="$(echo "$comment" | sed -E "s/(^\"|\"$)//g")"
case "$tag" in case "$tag" in
"A") aurinstall "$program" "$comment" ;; "A") aurinstall "$program" "$comment" ;;
"G") gitmakeinstall "$program" "$comment" ;;
"P") pipinstall "$program" "$comment" ;; # Will likely remain unused "P") pipinstall "$program" "$comment" ;; # Will likely remain unused
*) maininstall "$program" "$comment" ;; *) maininstall "$program" "$comment" ;;
esac esac