#!/bin/sh # skype version for this package current_version="2.0.0.72" # Get a temporary directory extraction_dir=$(perl -wle 'use File::Temp qw/tempdir/; print tempdir();') # Exit if perl could not create a directory if [[ ! -d $extraction_dir ]]; then echo "Could not create extraction directory!" > /dev/stderr exit 1 fi # Otherwise, proceed to extraction cd $extraction_dir # wget Skype echo "Downloading skype files..." wget http://www.skype.com/go/getskype-linux-static # Extract whichever tar.bz2 file is left behind echo "Extracting files..." tar xvf "skype_static-$current_version.tar.bz2" cd skype_static-$current_version ####################################################################### #Copy files to the right places # ####################################################################### echo "Copying files..." cp skype /usr/bin/skype chmod a+x /usr/bin/skype cp skype.conf /etc/dbus-1/system.d/skype.conf cp avatars/* /usr/share/skype/avatars cp lang/* /usr/share/skype/lang cp sounds/* /usr/share/skype/sounds cp LICENSE LICENSE.RtAudio README /usr/doc/skype-$current_version cp icons/* /usr/share/pixmaps cp icons/SkypeBlue_48x48.png /usr/share/pixmaps/skype.png rm /usr/share/applications/skype.desktop cp skype.desktop /usr/share/applications/skype.desktop #---------------------------------------------------------------------- # Remove the temporary build directory cd / rm -r $extraction_dir .