#!/bin/bash

. ./KDE.options
SLACKWARE=/mnt/d/slackware/slackware$LIBDIRSUFFIX-current/slackware$LIBDIRSUFFIX/

if [ "$LIBDIRSUFFIX" = "" ]; then
   LIBDIRSUFFIX=32
fi
SLAX=/mnt/d/slax/packages/$LIBDIRSUFFIX"bit"/



find $SLACKWARE -noleaf | egrep "polkit" | grep -v gnome | grep -v kde-agent | grep -v kcmodules | xargs upgradepkg --install-new

upgradepkg --install-new $SLAX/samba-stripped*

upgradepkg --install-new $SLACKWARE/*/libatasmart*
upgradepkg --install-new $SLACKWARE/*/udisks-*
upgradepkg --install-new $SLACKWARE/*/upower*

upgradepkg --install-new $SLACKWARE/*/libsoup*
upgradepkg --install-new $SLACKWARE/*/libgnome-keyring*
upgradepkg --install-new $SLACKWARE/*/mozilla-nss*
upgradepkg --install-new $SLACKWARE/*/NetworkManager*
upgradepkg --install-new $SLACKWARE/*/ModemManager*

upgradepkg --install-new $SLACKWARE/*/gst-plugins-base*
upgradepkg --install-new $SLACKWARE/*/gst-plugins-good*
upgradepkg --install-new $SLACKWARE/*/gstreamer*
upgradepkg --install-new $SLACKWARE/*/libvisual*
upgradepkg --install-new $SLACKWARE/*/libvisual-plugins*
upgradepkg --install-new $SLACKWARE/*/v4l-utils*
upgradepkg --install-new $SLACKWARE/*/libogg-*
upgradepkg --install-new $SLACKWARE/*/libtheora*
upgradepkg --install-new $SLACKWARE/*/libvorbis*
upgradepkg --install-new $SLACKWARE/*/taglib*
upgradepkg --install-new $SLACKWARE/*/taglib-extras*
upgradepkg --install-new $SLACKWARE/*/wavpack*

upgradepkg --install-new $SLACKWARE/*/samba*

upgradepkg --install-new $SLACKWARE/*/oxygen-icons*
upgradepkg --install-new $SLACKWARE/*/mesa*
upgradepkg --install-new $SLACKWARE/*/glu*
upgradepkg --install-new $SLACKWARE/*/qimageblitz*
upgradepkg --install-new --install-new $SLACKWARE/*/freetype*
upgradepkg --install-new $SLACKWARE/*/giflib*
upgradepkg --install-new $SLACKWARE/*/libpng*
upgradepkg --install-new $SLACKWARE/*/libjpeg*
upgradepkg --install-new $SLACKWARE/*/sqlite*
find $SLACKWARE -noleaf | egrep "openssl-[0-9]" | xargs upgradepkg --install-new

upgradepkg --install-new $SLACKWARE/*/attica*
find $SLACKWARE -noleaf | egrep "phonon-[0-9]" | xargs upgradepkg --install-new
upgradepkg --install-new $SLACKWARE/*/strigi*
upgradepkg --install-new $SLACKWARE/*/dbus-1*
upgradepkg --install-new $SLACKWARE/*/libdbusmenu-qt*
upgradepkg --install-new $SLACKWARE/*/libxml2*
upgradepkg --install-new $SLACKWARE/*/glew*
upgradepkg --install-new $SLACKWARE/*/shared-mime-info*

# needed only for compilation
upgradepkg --install-new $SLACKWARE/*/exiv2*
upgradepkg --install-new $SLACKWARE/*/pcre*
upgradepkg --install-new $SLACKWARE/*/automoc4*
upgradepkg --install-new $SLACKWARE/*/cyrus-sasl*
upgradepkg --install-new $SLACKWARE/*/openldap-client*
upgradepkg --install-new $SLACKWARE/*/libarchive*
upgradepkg --install-new $SLACKWARE/*/curl*
find $SLACKWARE -noleaf | egrep "perl-[0-9]" | xargs upgradepkg --install-new
find $SLACKWARE/x/ -noleaf | grep proto | xargs upgradepkg --install-new
upgradepkg --install-new $SLACKWARE/*/cmake*
