#!/bin/bash
cd ~
##brakujące biblioteki dla produktów Adobe
##----------------------------------
sudo apt-get -y --force-yes -f install
Arch=`uname -m`
if [ $Arch = "x86_64" ]; then
sudo apt-get install -y --force-yes libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7
sudo ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
sudo ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
elif [ $Arch = "i686" ]; then
sudo apt-get install -y --force-yes libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0
sudo ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
sudo ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
fi
sudo apt-get -y --force-yes -f install

##Adobe Air
##---------
wget http://airdownload.adobe.com/air/lin/download/latest/AdobeAIRInstaller.bin
sudo chmod +x AdobeAIRInstaller.bin
sudo ./AdobeAIRInstaller.bin
sudo rm AdobeAIRInstaller.bin

##e-pity
##------
wget http://download.e-pity.pl/down/setup_e-pity2015Linux.air
sudo chmod +x setup_e-pity2015Linux.air
sudo /usr/bin/Adobe\ AIR\ Application\ Installer ~/setup_e-pity2015Linux.air
sudo rm setup_e-pity2015Linux.air


