#!/bin/sh
#

#
# Additional Packages
COMMON="
git-core
neofetch
powerline
sshfs curlftpfs
keepass xdotool
gtk3-metatheme-breeze gtk3-metatheme-adapta gtk3-metatheme-bluebird arc-icon-theme paper-icon-theme deepin-icon-theme elementary-icon-theme
"

_COMMON="
joe git tmux
keepass2 xdotool
brasero
sshfs curlftpfs openssh-server
fonts-powerline powerline python3-powerline python3-powerline-gitstatus
lib32stdc++6
"

MULTIMEDIA="
kodi kodi.binary-addons-pvr.hts
ardour qjackctl lv2-calf
"

_MULTIMEDIA="
ffmpeg
kodi kodi-pvr-hts
spotify-client
photocollage
ardour ubuntustudio-controls calf-plugins eq10q fluid-soundfont-gm fluid-soundfont-gs lame
"


TOOLS="
texlive-latexmk-bin
"

_TOOLS="
evolution
gnuplot
gnome-boxes
gvncviewer
texlive-binaries texlive-latex-extra texlive-lang-german texlive-fonts-recommended texstudio
gimp
"

PROGRAMMING="
make
python38-virtualenv
python38-wxPython
"

_PROGRAMMING="
pycodestyle
virtualenv
python-coverage python3-coverage python-jinja2 python3-jinja2
python-wxtools python3-wxgtk4.0
python3-evdev python3-serial
python3-sphinx python3-sphinx-rtd-theme
meld
retext
"

ALL=$COMMON\ $MULTIMEDIA\ $TOOLS\ $PROGRAMMING

echo The followin packages and their required depending packages will be installed:
echo ------------------------------------------------------------------------------
echo $ALL
echo ------------------------------------------------------------------------------
read -r -p "Are you sure? [y/N] " response
echo ------------------------------------------------------------------------------
case "$response" in
    [yY][eE][sS]|[yY]) 
        sudo zypper ar -cfp 90 https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/ packman
        sudo zypper ar -cfp 90 http://opensuse-guide.org/repo/openSUSE_Tumbleweed/ libdvdcss
        sudo zypper ar -cfp 90 https://download.opensuse.org/repositories/multimedia:/apps/openSUSE_Tumbleweed/ multimedia:apps
        sudo zypper install $ALL
        ;;
    *)
        echo Installation aborted!
        ;;
esac

