obosdi-pkg/install/apps/internet/webbrowser

43 lines
1 KiB
Text
Raw Normal View History

2015-12-06 16:41:56 -07:00
#!/bin/bash
. ./lib
options=()
2019-03-16 13:33:55 -06:00
options+=("chromium" "(GTK)" off)
options+=("pepper-flash" "" off)
2018-10-12 17:27:23 -06:00
options+=("firefox" "(GTK)" off)
options+=("firefox-i18n" "" off)
2018-10-12 17:27:23 -06:00
options+=("opera" "(GTK)" off)
options+=("opera-ffmpeg-codecs" "Non-free codecs" off)
2018-10-12 17:27:23 -06:00
options+=("seamonkey" "(GTK)" off)
options+=("seamonkey-i18n" "(AUR)" off)
2018-10-12 17:27:23 -06:00
options+=("midori" "(GTK)" off)
options+=("falkon" "(QT)" off)
2022-10-15 18:25:35 -06:00
options+=("vivaldi" "(GTK)" off)
options+=("vivaldi-ffmpeg-codecs" "Non-free codecs" off)
2015-12-06 16:41:56 -07:00
2022-11-10 14:27:23 -07:00
sel=$(dialog --backtitle "$apptitle" --title "Web Browser applications :" --cancel-button "Back" --checklist "Choose what you want" 0 0 0 \
2015-12-06 16:41:56 -07:00
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then
exit 1
fi
for itm in $sel; do
case $itm in
2022-11-10 14:27:23 -07:00
"firefox-i18n" | \
"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
2022-11-10 14:27:23 -07:00
"firefox-i18n") choosepkg "firefox-i18n-";;
"seamonkey-i18n") chooseaurpkg "seamonkey-i18n-";;
2015-12-06 16:41:56 -07:00
esac
done
exit 0