Reorder Apps

This commit is contained in:
MatMoul 2015-12-07 00:41:56 +01:00
parent 790b1176f9
commit c1bbabf705
19 changed files with 604 additions and 0 deletions

View file

@ -0,0 +1,32 @@
#!/bin/bash
. ./lib
options=()
options+=("gimp" "" off)
options+=("inkscape" "" off)
options+=("dia" "" off)
options+=("calligra-krita" "" off)
sel=$(whiptail --backtitle "$apptitle" --title "Graphic 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
#'""') 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
'"gimp"') choosepkg "gimp-help-";;
esac
done
exit 0

View file

@ -0,0 +1,28 @@
#!/bin/bash
. ./lib
options=()
options+=("thunderbird" "" off)
sel=$(whiptail --backtitle "$apptitle" --title "E-Mails 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
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
instpkg "$pkg" "$aurpkg"
for itm in $sel; do
case $itm in
'"thunderbird"') choosepkg "thunderbird-i18n-";;
esac
done
exit 0

View file

@ -0,0 +1,25 @@
#!/bin/bash
. ./lib
options=()
options+=("Web Browser" "")
options+=("Torrent" "")
options+=("E-Mail" "")
defaultitem=""
sel=$(whiptail --backtitle "$apptitle" --title "Internet Apps :" --menu "" --default-item "$defaultitem" --cancel-button "Back" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then
exit 1
fi
sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0
case $sel in
"Web Browser") script install/apps/internet/webbrowser;;
"Torrent") script install/apps/internet/torrent;;
"E-Mail") script install/apps/internet/mail;;
esac
exit 0

View file

@ -0,0 +1,23 @@
#!/bin/bash
. ./lib
options=()
options+=("tixati" "(AUR)" off)
sel=$(whiptail --backtitle "$apptitle" --title "Torrent 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
'"tixati"') aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
instpkg "$pkg" "$aurpkg"
exit 0

View file

@ -0,0 +1,38 @@
#!/bin/bash
. ./lib
options=()
options+=("chromium" "" on)
options+=("chromium-pepper-flash" "(AUR)" on)
options+=("chromium-pepper-flash-standalone" "(AUR)" off)
options+=("firefox" "" on)
options+=("flashplugin" "" off)
options+=("freshplayerplugin-git" "(AUR)" on)
options+=("freshplayerplugin" "(AUR)" 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
'"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-";;
esac
done
exit 0

37
install/apps/menu Normal file
View file

@ -0,0 +1,37 @@
#!/bin/bash
. ./lib
options=()
options+=("Office" "")
options+=("Internet" "")
options+=("Multimedia" "")
options+=("Graphic" "")
#options+=("Network" "")
options+=("System" "")
options+=("PacMan GUI" "")
#options+=("Dev" "")
#options+=("Games" "")
defaultitem=""
sel=$(whiptail --backtitle "$apptitle" --title "Apps Install Menu :" --menu "" --default-item "$defaultitem" --cancel-button "Back" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then
exit 1
fi
sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0
case $sel in
"Office") menu install/apps/office/menu;;
"Internet") menu install/apps/internet/menu;;
"Multimedia") menu install/apps/multimedia/menu;;
"Graphic") script install/apps/graphic/graphic;;
"Network") script install/apps/network;;
"System") script install/apps/system/system;;
"PacMan GUI") script install/apps/pacmangui/pacmangui;;
"Dev") script install/apps/dev;;
"Games") script install/apps/games;;
esac
exit 0

View file

@ -0,0 +1,27 @@
#!/bin/bash
. ./lib
options=()
options+=("amarok" "Audio Player" off)
options+=("guayadeque" "Audio Player" off)
options+=("clementine" "Audio Player" off)
options+=("mixxx" "Audio Player" off)
options+=("gmusicbrowser" "(AUR) Audio Player" off)
sel=$(whiptail --backtitle "$apptitle" --title "Audio Player 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
'"gmusicbrowser"') aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
instpkg "$pkg" "$aurpkg"
exit 0

View file

@ -0,0 +1,39 @@
#!/bin/bash
. ./lib
options=()
options+=("gst-plugins-base" "" on)
options+=("gst-plugins-good" "" on)
options+=("gst-plugins-ugly" "" on)
options+=("gst-plugins-bad" "" off)
options+=("gst-libav" "" on)
#options+=("gst-plugin-libde265" "(AUR)" off)
options+=("gstreamer0.10-base-plugins" "" on)
options+=("gstreamer0.10-good-plugins-slim" "(AUR)" off)
options+=("gstreamer0.10-good-plugins" "" on)
options+=("gstreamer0.10-ugly-plugins" "" on)
options+=("gstreamer0.10-bad-plugins" "" off)
options+=("gstreamer0.10-ffmpeg" "" on)
#options+=("gstreamer0.10-plugin-libde265" "(AUR)" off)
#options+=("libde265" "(AUR)" off)
sel=$(whiptail --backtitle "$apptitle" --title "GStreamer :" --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
case $itm in
'gst-plugin-libde265' | \
'gstreamer0.10-good-plugins-slim' | \
'gstreamer0.10-plugin-libde265') aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
instpkg "$pkg" "$aurpkg"
exit 0

View file

@ -0,0 +1,27 @@
#!/bin/bash
. ./lib
options=()
options+=("GStreamer" "")
options+=("Audio Player" "")
options+=("Video Player" "")
options+=("Video Tools" "")
defaultitem=""
sel=$(whiptail --backtitle "$apptitle" --title "Multimedia Apps :" --menu "" --default-item "$defaultitem" --cancel-button "Back" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then
exit 1
fi
sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0
case $sel in
"GStreamer") script install/apps/multimedia/gstreamer;;
"Audio Player") script install/apps/multimedia/audioplayer;;
"Video Player") script install/apps/multimedia/videoplayer;;
"Video Tools") script install/apps/multimedia/videotools;;
esac
exit 0

View file

@ -0,0 +1,25 @@
#!/bin/bash
. ./lib
options=()
options+=("avidemux-gtk" "Video Editor" off)
options+=("avidemux-qt" "Video Editor" off)
options+=("simplescreenrecorder" "Screen Recorder" off)
#options+=("lib32-simplescreenrecorder" "For simplescreenrecorder" off) #Need multilib
sel=$(whiptail --backtitle "$apptitle" --title "Video Tools 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
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
instpkg "$pkg" "$aurpkg"
exit 0

View file

@ -0,0 +1,25 @@
#!/bin/bash
. ./lib
options=()
options+=("vlc" "Video player" off)
options+=("smplayer" "Video player" off)
options+=("mpv" "Recommended for smplayer" off)
options+=("smtube" "Youtube Player" off)
sel=$(whiptail --backtitle "$apptitle" --title "Video Player 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
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
instpkg "$pkg" "$aurpkg"
exit 0

23
install/apps/office/menu Normal file
View file

@ -0,0 +1,23 @@
#!/bin/bash
. ./lib
options=()
options+=("Office Suites" "")
options+=("Office Tools" "")
defaultitem=""
sel=$(whiptail --backtitle "$apptitle" --title "Office Apps :" --menu "" --default-item "$defaultitem" --cancel-button "Back" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then
exit 1
fi
sed -i "/^defaultitem=/c\defaultitem=\"$sel\"" $0
case $sel in
"Office Suites") script install/apps/office/office;;
"Office Tools") script install/apps/office/office-tools;;
esac
exit 0

View file

@ -0,0 +1,31 @@
#!/bin/bash
. ./lib
options=()
options+=("libreoffice-fresh" "" off)
options+=("libreoffice-still" "" off)
sel=$(whiptail --backtitle "$apptitle" --title "Office Suites 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
'"calcoo"') 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
'"libreoffice-fresh"') choosepkg "libreoffice-fresh-";;
'"libreoffice-still"') choosepkg "libreoffice-still-";;
esac
done
exit 0

View file

@ -0,0 +1,24 @@
#!/bin/bash
. ./lib
options=()
options+=("qalculate-gtk" "" off)
options+=("calcoo" "(AUR)" off)
sel=$(whiptail --backtitle "$apptitle" --title "Office Tools 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
'"calcoo"') aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
instpkg "$pkg" "$aurpkg"
exit 0

View file

@ -0,0 +1,45 @@
#!/bin/bash
. ./lib
options=()
options+=("octopi" "(AUR) (QT)" off)
options+=("octopi-notifier" "(AUR) (QT)" off)
options+=("octopi-cachecleaner" "(AUR) (QT)" off)
options+=("octopi-repoeditor" "(AUR) (QT)" off)
options+=("appset-qt" "(AUR) (QT)" off)
options+=("pamac-aur" "(AUR) (GTK)" off)
sel=$(whiptail --backtitle "$apptitle" --title "PacMan GUI applications :" --checklist "Recommended to choose one" --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
'"octopi"' | \
'"octopi-notifier"' | \
'"octopi-cachecleaner"' | \
'"octopi-repoeditor"' | \
'"appset-qt"' | \
'"pamac-aur"')
multilib="true"
aurpkg="$aurpkg $(echo $itm | sed 's/"//g')"
;;
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
if [ "$multilib" = "true" ]; then
if ( confirm "To install wine or wine_gecko, multilib repo is requires.\nFor this, the script edit the [mulilib] part in /etc/pacman.conf and run pacman -Syu\n\nEnable multilib repo ?" ) then
sed -i '/\[multilib\]/s/^#//g' /etc/pacman.conf
sed -i '/\[multilib\]/{n;s/^#//g}' /etc/pacman.conf
pacman -Syu
else
exit 1
fi
fi
instpkg "$pkg" "$aurpkg"
exit 0

View file

@ -0,0 +1,79 @@
#!/bin/bash
. ./lib
options=()
#options+=("octopi" "(AUR) qt pacman gui" off)
#options+=("appset-qt" "(AUR) qt pacman gui" off)
#options+=("pamac-aur" "(AUR) gtk pacman gui" off)
options+=("gparted" "Partitions manager" off)
options+=("bleachbit" "profile cleaner" off)
options+=("keepass" "Password Manager" off)
options+=("keepassx" "Password Manager" off)
options+=("keepassx-git" "(AUR) Password Manager" off)
options+=("virtualbox" "" off)
options+=("virtualbox-host-dkms" "recommended for virtualbox" off)
#options+=("virtualbox-host-modules" "" on)
options+=("wine" "MS Windows App Support" off)
options+=("wine_gecko" "MS Windows App Support" off)
options+=("wine-mono" "MS Windows App Support" off)
options+=("zenity" "recommended for wine" off)
options+=("winetricks" "recommended for wine" off)
options+=("gdmap" "" off)
options+=("k4dirstat" "(AUR)" off)
options+=("conky" "" off)
sel=$(whiptail --backtitle "$apptitle" --title "System 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
'"octopi"' | \
'"appset-qt"' | \
'"pamac-aur"' | \
'"keepassx-git"' | \
'"k4dirstat"') aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
'"wine"' | \
'"wine_gecko"')
multilib="true"
pkg="$pkg $(echo $itm | sed 's/"//g')"
;;
'"virtualbox-host-modules"')
pkg="$pkg virtualbox-host-dkms"
pkg="$pkg virtualbox-host-modules"
;;
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
if [ "$multilib" = "true" ]; then
if ( confirm "To install wine or wine_gecko, multilib repo is requires.\nFor this, the script edit the [mulilib] part in /etc/pacman.conf and run pacman -Syu\n\nEnable multilib repo ?" ) then
sed -i '/\[multilib\]/s/^#//g' /etc/pacman.conf
sed -i '/\[multilib\]/{n;s/^#//g}' /etc/pacman.conf
pacman -Syu
else
exit 1
fi
fi
instpkg "$pkg" "$aurpkg"
for itm in $sel; do
case $itm in
'"virtualbox-host-dkms"')
if ( confirm "virtualbox-host-dkms require to rebuild initcpio.\n\nRun mkinitcpio -o linux ?" ) then
mkinitcpio -p linux
fi
svcenable dkms
svcstart dkms
dkms autoinstall
;;
'"virtualbox-host-modules"')
dkms autoinstall
;;
esac
done
exit 0

24
install/apps/tmp/dev Normal file
View file

@ -0,0 +1,24 @@
#!/bin/bash
. ./lib
options=()
options+=("Geany" "" off)
options+=("WebStorm" "(AUR)" off)
sel=$(whiptail --backtitle "$apptitle" --title "Dev 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
'"WebStorm"') aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
instpkg "$pkg" "$aurpkg"
exit 0

23
install/apps/tmp/games Normal file
View file

@ -0,0 +1,23 @@
#!/bin/bash
. ./lib
options=()
options+=("0AD" "" off)
options+=("puzzles" "" off)
sel=$(whiptail --backtitle "$apptitle" --title "Game 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
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
instpkg "$pkg" "$aurpkg"
exit 0

29
install/apps/tmp/network Normal file
View file

@ -0,0 +1,29 @@
#!/bin/bash
. ./lib
options=()
options+=("remmina" "" off)
#options+=("kdenetwork-krdc" "" off)
#options+=("kvpnc" "" off)
options+=("teamviewer" "(AUR)" off)
#options+=("zenmap" "" off)
options+=("jnetmap" "(AUR)" off)
sel=$(whiptail --backtitle "$apptitle" --title "Network 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
'"teamviewer"' | \
'"jnetmap"') aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
instpkg "$pkg" "$aurpkg"
exit 0