2015-12-06 16:41:56 -07:00
|
|
|
#!/bin/bash
|
|
|
|
. ./lib
|
|
|
|
|
|
|
|
options=()
|
2015-12-06 16:55:40 -07:00
|
|
|
options+=("chromium" "" off)
|
2015-12-06 17:17:16 -07:00
|
|
|
options+=("chromium-pepper-flash" "(AUR) Recommended" off)
|
2015-12-06 16:41:56 -07:00
|
|
|
options+=("chromium-pepper-flash-standalone" "(AUR)" off)
|
2015-12-06 16:55:40 -07:00
|
|
|
options+=("firefox" "" off)
|
2015-12-06 16:41:56 -07:00
|
|
|
options+=("flashplugin" "" off)
|
2015-12-06 16:55:40 -07:00
|
|
|
options+=("freshplayerplugin-git" "(AUR) Recommended" off)
|
2015-12-06 16:41:56 -07:00
|
|
|
options+=("freshplayerplugin" "(AUR)" off)
|
2015-12-06 16:55:40 -07:00
|
|
|
options+=("opera" "" off)
|
2016-01-11 12:22:39 -07:00
|
|
|
options+=("seamonkey" "" off)
|
2015-12-06 16:55:40 -07:00
|
|
|
options+=("midori" "" off)
|
|
|
|
options+=("midori-gtk2" "" off)
|
2016-01-11 12:17:16 -07:00
|
|
|
options+=("qupzilla" "" off)
|
|
|
|
options+=("qupzilla-qt4" "" off)
|
2015-12-06 16:41:56 -07:00
|
|
|
|
|
|
|
sel=$(whiptail --backtitle "$apptitle" --title "Web Browser applications :" --checklist "Choose what you want" --cancel-button "Back" 0 0 0 \
|
|
|
|
"${options[@]}" \
|
|
|
|
3>&1 1>&2 2>&3)
|
|
|
|
if [ ! "$?" = "0" ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
for itm in $sel; do
|
|
|
|
case $itm in
|
|
|
|
'"chromium-pepper-flash"' | \
|
|
|
|
'"chromium-pepper-flash-standalone"' | \
|
|
|
|
'"freshplayerplugin-git"' | \
|
|
|
|
'"freshplayerplugin"') aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
|
|
|
|
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
instpkg "$pkg" "$aurpkg"
|
|
|
|
|
|
|
|
for itm in $sel; do
|
|
|
|
case $itm in
|
|
|
|
'"firefox"') choosepkg "firefox-i18n-";;
|
2016-01-11 12:22:39 -07:00
|
|
|
'"seamonkey"') chooseaurpkg "seamonkey-i18n-";;
|
2015-12-06 16:41:56 -07:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|