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+=("egrep" "egrep --color=auto" on)
options+=("fgrep" "fgrep --color=auto" on) options+=("fgrep" "fgrep --color=auto" on)
options+=("mkdir" "mkdir -pv" off) 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 \ sel=$(whiptail --backtitle "$apptitle" --title "Aliases in /etc/profile.d/alias.sh :" --checklist "" --cancel-button "Back" 0 0 0 \
"${options[@]}" \ "${options[@]}" \
@ -51,6 +54,7 @@ for itm in $sel; do
'"egrep"') echo "alias egrep='egrep --color=auto'" >> /etc/profile.d/alias.sh;; '"egrep"') echo "alias egrep='egrep --color=auto'" >> /etc/profile.d/alias.sh;;
'"fgrep"') echo "alias fgrep='fgrep --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;; '"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 esac
done done

View file

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

View file

@ -13,7 +13,6 @@ options+=("opera" "" off)
options+=("seamonkey" "" off) options+=("seamonkey" "" off)
options+=("seamonkey-i18n" "(AUR)" off) options+=("seamonkey-i18n" "(AUR)" off)
options+=("midori" "" off) options+=("midori" "" off)
options+=("midori-gtk2" "" off)
options+=("qupzilla" "" off) options+=("qupzilla" "" off)
sel=$(whiptail --backtitle "$apptitle" --title "Web Browser applications :" --checklist "Choose what you want" --cancel-button "Back" 0 0 0 \ 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+=("mtpfs" "" off)
options+=("unionfs-fuse" "" off) options+=("unionfs-fuse" "" off)
options+=("nilfs-utils" "" off) options+=("nilfs-utils" "" off)
options+=("gnome-vfs" "" off) options+=("gvfs" "" off)
options+=("s3fs-fuse" "" off) options+=("s3fs-fuse" "" off)
#options+=("fuse-exfat" "" off) # Normally installed by dependencies #options+=("fuse-exfat" "" off) # Normally installed by dependencies
#options+=("f2fs-tools" "" 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) items=$(pacman -Ssq xf86-input)
for item in $items; do for item in $items; do
case $item in case $item in
"xf86-input-keyboard") options+=("$item" "" on);; "xf86-input-libinput") options+=("$item" "" on);;
"xf86-input-mouse") options+=("$item" "" on);;
"xf86-input-synaptics") options+=("$item" "(For Most TrackPad)" off);; "xf86-input-synaptics") options+=("$item" "(For Most TrackPad)" off);;
"xf86-input-vmmouse") options+=("$item" "(VMWare)" off);; "xf86-input-vmmouse") options+=("$item" "(VMWare)" off);;
*) options+=("$item" "" off);; *) options+=("$item" "" off);;

View file

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

17
lib
View file

@ -53,15 +53,16 @@ instpkg(){
sudo -u aurbuilder yaourt -S --needed $2 sudo -u aurbuilder yaourt -S --needed $2
pressanykey pressanykey
else 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 !" 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
fi fi
} }

View file

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