#!/bin/sh
#

#
# Additional Packages
COMMON="
zsh zsh-syntax-highlighting zsh-autosuggestions
vim vim-python-jedi vim-autopep8 git tmux
synaptic
owncloud-client
keepass2 xdotool
tlp tlp-rdw
brasero
sshfs curlftpfs openssh-server
fonts-powerline powerline python3-powerline python3-powerline-gitstatus
"

MULTIMEDIA="
ffmpeg
kodi kodi-pvr-hts
spotify-client
photocollage
ardour calf-plugins eq10q fluid-soundfont-gm fluid-soundfont-gs guitarix-ladspa swh-plugins
ubuntustudio-controls carla
sonata elisa obs-studio kdenlive
gxtuner
lame
"


TOOLS="
evolution
gnuplot
gvncviewer
texlive-binaries texlive-latex-extra texlive-lang-german texlive-fonts-recommended texstudio
gimp
kicad kicad-packages3d
openscad freecad
"

PROGRAMMING="
arduino patchelf libserialport0
minicom
pycodestyle
virtualenv
python3-wxgtk4.0
python3-pip
meld
"

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 apt-get -y install $ALL
        #
        echo
        echo
        echo You need to enable and start tlp, if you want to have it running.
        echo Execute: sudo patchelf --add-needed libserialport.so.0 /usr/lib/x86_64-linux-gnu/liblistSerialsj.so.1.4.0 for arduino startup
        ;;
    *)
        echo Installation aborted!
        ;;
esac
