obosdi-pkg/install/apps/internet/webbrowser
FredBezies 3ac9c11eba
Added some infos on vivaldi ffmpeg codecs
In order to give user some infos on it.
2018-09-20 22:40:04 +02:00

49 lines
1.3 KiB
Bash

#!/bin/bash
. ./lib
options=()
options+=("chromium" "" off)
options+=("pepper-flash" "(AUR) Recommended" off)
options+=("firefox" "" off)
options+=("firefox-i18n" "" off)
options+=("flashplugin" "" off)
options+=("freshplayerplugin" "(AUR) Recommended" off)
options+=("freshplayerplugin-git" "(AUR)" off)
options+=("opera" "" off)
options+=("seamonkey" "" off)
options+=("seamonkey-i18n" "(AUR)" off)
options+=("midori" "" off)
options+=("falkon" "" off)
options+=("vivaldi" "(AUR)" off)
options+=("vivaldi-ffmpeg-codecs" "(AUR) Non-free codecs" off)
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
'"pepper-flash"' | \
'"freshplayerplugin-git"' | \
'"freshplayerplugin"' | \
'"vivaldi"' | \
'"vivaldi-ffmpeg-codecs"') aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
'"firefox-i18n"' | \
'"seamonkey-i18n"') pkg="$pkg";;
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
instpkg "$pkg" "$aurpkg"
for itm in $sel; do
case $itm in
'"firefox-i18n"') choosepkg "firefox-i18n-";;
'"seamonkey-i18n"') chooseaurpkg "seamonkey-i18n-";;
esac
done
exit 0