diff options
author | Martin Lefebvre <dadexter@gmail.com> | 2010-05-11 19:46:01 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 19:46:01 +0200 |
commit | 48885c66fa662074ea79c115dd57b367657145fc (patch) | |
tree | bb5cfe0d948a40b370c19469f040d0ae2aa95c7f /network/skype/skype.SlackBuild | |
parent | 315815c65a03bc3d4357be7d521462418bda4d7a (diff) | |
download | slackbuilds-48885c66fa662074ea79c115dd57b367657145fc.tar.gz |
network/skype: Updated for version 1.4.0.118
Diffstat (limited to 'network/skype/skype.SlackBuild')
-rw-r--r-- | network/skype/skype.SlackBuild | 41 |
1 files changed, 34 insertions, 7 deletions
diff --git a/network/skype/skype.SlackBuild b/network/skype/skype.SlackBuild index 5358f420ab..18b3193efd 100644 --- a/network/skype/skype.SlackBuild +++ b/network/skype/skype.SlackBuild @@ -24,11 +24,12 @@ # # Modified by the SlackBuilds.org project +# Added Skype 1.4 compatibility by Mauro Giachero set -e PRGNAM=skype -VERSION=1.3.0.53 +VERSION=1.4.0.118 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -44,19 +45,45 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP || exit 1 rm -rf $PRGNAM-$VERSION -tar -xjvf $CWD/$PRGNAM-$VERSION-generic.tar.bz2 || exit 1 -cd $PRGNAM-$VERSION || exit 1 +# 1.3.x.y packages are named "skype-1.3.x.y-generic.tar.bz2" +# 1.4.x.y packages are named "skype_static-1.4.x.y.tar.bz2" +# Since the _static package is twice as large as the -generic +# one, we keep this script compatible with both. +# The $SOURCETYPE variable is used in later steps to filter +# 1.3-only and 1.4-only things +if [ -f $CWD/$PRGNAM-$VERSION-generic.tar.bz2 ]; then + echo Unpacking $PRGNAM-$VERSION-generic.tar.bz2 + tar -xjvf $CWD/$PRGNAM-$VERSION-generic.tar.bz2 || exit 1 + cd $PRGNAM-$VERSION || exit 1 + SOURCETYPE=1.3 +else + echo Unpacking ${PRGNAM}_static-$VERSION.tar.bz2 + tar -xjvf $CWD/${PRGNAM}_static-$VERSION.tar.bz2 || exit 1 + cd ${PRGNAM}_static-$VERSION || exit 1 + SOURCETYPE=1.4 +fi chown -R root:root . chmod -R u+w,go+r-w,a-s . -chmod 644 sound/* +if [ $SOURCETYPE == 1.3 ]; then + chmod 644 sound/* +else + chmod 644 sounds/* +fi # ./configure not necessary for binary based builds mkdir -p $PKG/{usr/{bin,share/{skype,pixmaps,applications}},etc/dbus-1/system.d} -cp skype skype-callto-handler $PKG/usr/bin -cp -R sound lang $PKG/usr/share/skype +cp skype $PKG/usr/bin +if [ $SOURCETYPE == 1.3 ]; then + cp -R sound lang $PKG/usr/share/skype + cp icons/skype_48_32.png $PKG/usr/share/pixmaps/skype.png + cp skype-callto-handler $PKG/usr/bin +else + cp -R sounds lang $PKG/usr/share/skype + cp icons/SkypeBlue_48x48.png $PKG/usr/share/pixmaps/skype.png + cp -R avatars $PKG/usr/share/skype +fi cp skype.conf $PKG/etc/dbus-1/system.d/skype.conf.new -cp icons/skype_48_32.png $PKG/usr/share/pixmaps/skype.png sed -e "s/Icon\=skype.png/Icon\=\/usr\/share\/pixmaps\/skype.png/g" \ skype.desktop > $PKG/usr/share/applications/skype.desktop |