2015-12-06 16:41:56 -07:00
|
|
|
#!/bin/bash
|
|
|
|
. ./lib
|
|
|
|
|
|
|
|
options=()
|
2015-12-06 16:55:40 -07:00
|
|
|
options+=("chromium" "" off)
|
2016-12-04 13:12:53 -07:00
|
|
|
options+=("pepper-flash" "(AUR) Recommended" off)
|
2015-12-06 16:55:40 -07:00
|
|
|
options+=("firefox" "" off)
|
2016-04-08 16:55:02 -06:00
|
|
|
options+=("firefox-i18n" "" off)
|
2015-12-06 16:41:56 -07:00
|
|
|
options+=("flashplugin" "" off)
|
2016-12-04 13:12:53 -07:00
|
|
|
options+=("freshplayerplugin" "(AUR) Recommended" off)
|
|
|
|
options+=("freshplayerplugin-git" "(AUR)" off)
|
2015-12-06 16:55:40 -07:00
|
|
|
options+=("opera" "" off)
|
2018-09-20 14:50:12 -06:00
|
|
|
options+=("opera-ffmpeg-codecs" "Non-free codecs" off)
|
2016-01-11 12:22:39 -07:00
|
|
|
options+=("seamonkey" "" off)
|
2016-04-08 16:55:02 -06:00
|
|
|
options+=("seamonkey-i18n" "(AUR)" off)
|
2015-12-06 16:55:40 -07:00
|
|
|
options+=("midori" "" off)
|
2018-06-04 16:35:39 -06:00
|
|
|
options+=("falkon" "" off)
|
2018-09-20 13:53:23 -06:00
|
|
|
options+=("vivaldi" "(AUR)" off)
|
2018-09-20 14:40:04 -06:00
|
|
|
options+=("vivaldi-ffmpeg-codecs" "(AUR) Non-free codecs" 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
|
2016-12-04 13:12:53 -07:00
|
|
|
'"pepper-flash"' | \
|
2015-12-06 16:41:56 -07:00
|
|
|
'"freshplayerplugin-git"' | \
|
2018-09-20 13:53:23 -06:00
|
|
|
'"freshplayerplugin"' | \
|
2018-09-20 14:24:42 -06:00
|
|
|
'"vivaldi"' | \
|
2018-09-20 13:53:23 -06:00
|
|
|
'"vivaldi-ffmpeg-codecs"') aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
|
2016-04-08 16:55:02 -06:00
|
|
|
'"firefox-i18n"' | \
|
2016-04-08 16:59:56 -06:00
|
|
|
'"seamonkey-i18n"') pkg="$pkg";;
|
2015-12-06 16:41:56 -07:00
|
|
|
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
instpkg "$pkg" "$aurpkg"
|
|
|
|
|
|
|
|
for itm in $sel; do
|
|
|
|
case $itm in
|
2016-04-08 16:55:02 -06:00
|
|
|
'"firefox-i18n"') choosepkg "firefox-i18n-";;
|
|
|
|
'"seamonkey-i18n"') chooseaurpkg "seamonkey-i18n-";;
|
2015-12-06 16:41:56 -07:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|