obosdi-pkg/install/desktop/plasma5/kdeapps

90 lines
1.9 KiB
Text
Raw Normal View History

2015-08-20 14:37:06 -06:00
#!/bin/bash
. ./lib
options=()
items=$(pacman -Sqg kde-applications)
for item in $items; do
case $item in
"dolphin" | \
"kdepasswd" | \
"kdialog" | \
"kfind" | \
"workspace" | \
"ksystemlog" | \
"kuser" | \
"ark" | \
"kwalletmanager" | \
"kgamma" | \
"ksnapshot" | \
"okular" | \
"audiocd-kio" | \
"ffmpegthumbs" | \
"mplayerthumbs" | \
"filesharing" | \
"zeroconf-ioslave" | \
"kate" | \
"thumbnailers" | \
"kdebase-dolphin" | \
"kdebase-kdepasswd" | \
"kdebase-kdialog" | \
"kdebase-kfind" | \
"kdebase-workspace" | \
"konsole" | \
"kwrite" | \
"kcron" | \
"kdeadmin-ksystemlog" | \
"kdeadmin-kuser" | \
"kdeutils-ark" | \
"kdeutils-kwalletmanager" | \
"kcalc" | \
"kcharselect" | \
"print-manager" | \
"kdegraphics-kgamma" | \
"kdegraphics-ksnapshot" | \
"kdegraphics-okular" | \
"kdemultimedia-audiocd-kio" | \
"kdemultimedia-ffmpegthumbs" | \
"kdemultimedia-mplayerthumbs" | \
"kdenetwork-filesharing" | \
"kdenetwork-zeroconf-ioslave" | \
"kate" | \
"kdesdk-thumbnailers" | \
"kdeartwork-"*) options+=("$item" "" on);;
"akregator" | \
"kaddressbook" | \
"kalarm" | \
"kleopatra" | \
"kmail" | \
"knotes" | \
"kontact" | \
"korganizer" | \
"kdepim-akregator" | \
"kdepim-kaddressbook" | \
"kdepim-kalarm" | \
"kdepim-kleopatra" | \
"kdepim-kmail" | \
"kdepim-knotes" | \
"kdepim-kontact" | \
"kdepim-korganizer" | \
"kdeartwork-"*) options+=("$item" "(recommended)" off);;
*) options+=("$item" "" off);;
esac
done
sel=$(whiptail --backtitle "$apptitle" --title "$package Install :" --checklist "" --cancel-button "Back" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then
exit 1
fi
for itm in $sel; do
pkg="$pkg $(echo $itm | sed 's/"//g')"
done
instpkg "$pkg" "$aurpkg"
exit 0