diff --git a/install/apps/graphic/graphic b/install/apps/graphic/graphic new file mode 100644 index 0000000..2d0ba89 --- /dev/null +++ b/install/apps/graphic/graphic @@ -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 diff --git a/install/apps/internet/mail b/install/apps/internet/mail new file mode 100644 index 0000000..578969a --- /dev/null +++ b/install/apps/internet/mail @@ -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 diff --git a/install/apps/internet/menu b/install/apps/internet/menu new file mode 100644 index 0000000..07fb4d5 --- /dev/null +++ b/install/apps/internet/menu @@ -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 diff --git a/install/apps/internet/torrent b/install/apps/internet/torrent new file mode 100644 index 0000000..f022b40 --- /dev/null +++ b/install/apps/internet/torrent @@ -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 diff --git a/install/apps/internet/webbrowser b/install/apps/internet/webbrowser new file mode 100644 index 0000000..6e39d7c --- /dev/null +++ b/install/apps/internet/webbrowser @@ -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 diff --git a/install/apps/menu b/install/apps/menu new file mode 100644 index 0000000..5e66265 --- /dev/null +++ b/install/apps/menu @@ -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 diff --git a/install/apps/multimedia/audioplayer b/install/apps/multimedia/audioplayer new file mode 100644 index 0000000..6eb2a20 --- /dev/null +++ b/install/apps/multimedia/audioplayer @@ -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 diff --git a/install/apps/multimedia/gstreamer b/install/apps/multimedia/gstreamer new file mode 100644 index 0000000..01493d7 --- /dev/null +++ b/install/apps/multimedia/gstreamer @@ -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 diff --git a/install/apps/multimedia/menu b/install/apps/multimedia/menu new file mode 100644 index 0000000..2a755e6 --- /dev/null +++ b/install/apps/multimedia/menu @@ -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 diff --git a/install/apps/multimedia/video-tools b/install/apps/multimedia/video-tools new file mode 100644 index 0000000..3c5c453 --- /dev/null +++ b/install/apps/multimedia/video-tools @@ -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 diff --git a/install/apps/multimedia/videoplayer b/install/apps/multimedia/videoplayer new file mode 100644 index 0000000..5e28715 --- /dev/null +++ b/install/apps/multimedia/videoplayer @@ -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 diff --git a/install/apps/office/menu b/install/apps/office/menu new file mode 100644 index 0000000..d847b6a --- /dev/null +++ b/install/apps/office/menu @@ -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 diff --git a/install/apps/office/office b/install/apps/office/office new file mode 100644 index 0000000..eba7f9f --- /dev/null +++ b/install/apps/office/office @@ -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 diff --git a/install/apps/office/office-tools b/install/apps/office/office-tools new file mode 100644 index 0000000..a592225 --- /dev/null +++ b/install/apps/office/office-tools @@ -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 diff --git a/install/apps/pacmangui/pacmangui b/install/apps/pacmangui/pacmangui new file mode 100644 index 0000000..6fe53e5 --- /dev/null +++ b/install/apps/pacmangui/pacmangui @@ -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 diff --git a/install/apps/system/system b/install/apps/system/system new file mode 100644 index 0000000..8f24d96 --- /dev/null +++ b/install/apps/system/system @@ -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 diff --git a/install/apps/tmp/dev b/install/apps/tmp/dev new file mode 100644 index 0000000..d6049fd --- /dev/null +++ b/install/apps/tmp/dev @@ -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 diff --git a/install/apps/tmp/games b/install/apps/tmp/games new file mode 100644 index 0000000..54a1eda --- /dev/null +++ b/install/apps/tmp/games @@ -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 diff --git a/install/apps/tmp/network b/install/apps/tmp/network new file mode 100644 index 0000000..e14cb25 --- /dev/null +++ b/install/apps/tmp/network @@ -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