Packages maintenance

This commit is contained in:
MatMoul 2017-05-07 15:44:41 +02:00
parent 00be294fc1
commit 9ecc047565
8 changed files with 26 additions and 28 deletions

View file

@ -20,6 +20,9 @@ options+=("grep" "grep --color=auto" on)
options+=("egrep" "egrep --color=auto" on)
options+=("fgrep" "fgrep --color=auto" on)
options+=("mkdir" "mkdir -pv" off)
if [ -f /usr/bin/yaourt ]; then
options+=("yaourt" "sudo -u aurbuilder yaourt" on)
fi
sel=$(whiptail --backtitle "$apptitle" --title "Aliases in /etc/profile.d/alias.sh :" --checklist "" --cancel-button "Back" 0 0 0 \
"${options[@]}" \
@ -51,6 +54,7 @@ for itm in $sel; do
'"egrep"') echo "alias egrep='egrep --color=auto'" >> /etc/profile.d/alias.sh;;
'"fgrep"') echo "alias fgrep='fgrep --color=auto'" >> /etc/profile.d/alias.sh;;
'"mkdir"') echo "alias mkdir='mkdir -pv'" >> /etc/profile.d/alias.sh;;
'"yaourt"') echo "alias yaourt='sudo -u aurbuilder yaourt'" >> /etc/profile.d/alias.sh;;
esac
done

View file

@ -5,7 +5,7 @@ options=()
options+=("gimp" "" off)
options+=("inkscape" "" off)
options+=("dia" "" off)
options+=("calligra-krita" "" off)
options+=("krita" "" off)
sel=$(whiptail --backtitle "$apptitle" --title "Graphic applications :" --checklist "Choose what you want" --cancel-button "Back" 0 0 0 \
"${options[@]}" \

View file

@ -13,7 +13,6 @@ options+=("opera" "" off)
options+=("seamonkey" "" off)
options+=("seamonkey-i18n" "(AUR)" off)
options+=("midori" "" off)
options+=("midori-gtk2" "" off)
options+=("qupzilla" "" off)
sel=$(whiptail --backtitle "$apptitle" --title "Web Browser applications :" --checklist "Choose what you want" --cancel-button "Back" 0 0 0 \

View file

@ -22,7 +22,7 @@ options+=("hfsprogs" "" off)
options+=("mtpfs" "" off)
options+=("unionfs-fuse" "" off)
options+=("nilfs-utils" "" off)
options+=("gnome-vfs" "" off)
options+=("gvfs" "" off)
options+=("s3fs-fuse" "" off)
#options+=("fuse-exfat" "" off) # Normally installed by dependencies
#options+=("f2fs-tools" "" off) # Normally installed by dependencies

View file

@ -6,8 +6,7 @@ options=()
items=$(pacman -Ssq xf86-input)
for item in $items; do
case $item in
"xf86-input-keyboard") options+=("$item" "" on);;
"xf86-input-mouse") options+=("$item" "" on);;
"xf86-input-libinput") options+=("$item" "" on);;
"xf86-input-synaptics") options+=("$item" "(For Most TrackPad)" off);;
"xf86-input-vmmouse") options+=("$item" "(VMWare)" off);;
*) options+=("$item" "" off);;

View file

@ -4,14 +4,12 @@
options=()
options+=("xorg-server" "" on)
options+=("xorg-xinit" "" on)
options+=("xorg-utils" "" on)
items=$(pacman -Ssq xorg-)
for item in $items; do
case $item in
"xorg-server") ;;
"xorg-xinit") ;;
"xorg-utils") ;;
*)
if [ ! "$(echo $item | cut -d '-' -f 1)" = "xf86" ]; then
options+=("$item" "" off)

17
lib
View file

@ -53,15 +53,16 @@ instpkg(){
sudo -u aurbuilder yaourt -S --needed $2
pressanykey
else
if [ -f /usr/bin/packer ]; then
clear
echo "# sudo -u aurbuilder packer -S $2"
sudo -u aurbuilder packer -S $2
pressanykey
else
clear
echo "To install AUR packages, you need to install yaourt or packer in updates menu !"
fi
#if [ -f /usr/bin/packer ]; then
# clear
# echo "# sudo -u aurbuilder packer -S $2"
# sudo -u aurbuilder packer -S $2
# pressanykey
#else
# clear
# echo "To install AUR packages, you need to install yaourt or packer in updates menu !"
#fi
fi
fi
}

View file

@ -6,13 +6,13 @@ if [ -f /usr/bin/yaourt ]; then
options+=("Upgrade with yaourt" "yaourt -Syua")
aurhelper=1
fi
if [ -f /usr/bin/packer ]; then
options+=("Upgrade with packer" "packer -Syu")
aurhelper=1
fi
#if [ -f /usr/bin/packer ]; then
# options+=("Upgrade with packer" "packer -Syu")
# aurhelper=1
#fi
if [ ! "$aurhelper" = "1" ]; then
options+=("Install yaourt" "")
options+=("Install packer" "")
# options+=("Install packer" "")
options+=("" "")
fi
options+=("Upgrade" "pacman -Syu")
@ -30,23 +30,20 @@ if [ -f /var/lib/pacman/db.lck ]; then
fi
if [ ! -f /usr/bin/downgrade ]; then
options+=("Install downgrade" "")
options+=("" "")
fi
if [ "$aurhelper" = "1" ]; then
if [ ! -f /usr/bin/pkgstats ]; then
options+=("Install pkgstats" "")
options+=("" "")
fi
if [ ! -f /usr/bin/aurvote ]; then
options+=("Install aurvote" "")
options+=("" "")
fi
if [ ! -f /usr/bin/yaourt ]; then
options+=("Install yaourt" "")
fi
if [ ! -f /usr/bin/packer ]; then
options+=("Install packer" "")
fi
#if [ ! -f /usr/bin/packer ]; then
# options+=("Install packer" "")
#fi
fi
sel=$(whiptail --backtitle "$apptitle" --title "Updates Menu :" --menu "" --cancel-button "Back" 0 0 0 \