wok-stable view get-skype/stuff/get-skype @ rev 2295
tazndis: include also the GTK box
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Feb 22 22:41:59 2009 +0100 (2009-02-22) |
parents | e01dd228942a |
children | 79b993d2d81e |
line source
1 #!/bin/sh -e
3 ROOT="$1"
5 if test $(id -u) != 0 ; then
6 echo -e "\nYou must be root to run `basename $0`."
7 echo -e "Please type 'su' and root password to become super-user.\n"
8 exit 0
9 fi
11 if [ -d $ROOT/var/lib/tazpkg/installed/skype ]; then
12 [ -n "$ROOT" ] && exit 1
13 tazpkg remove skype
14 [ -d /var/lib/tazpkg/installed/skype ] && exit 1
15 fi
16 [ -d $ROOT/usr/share/skype ] && rm -rf $ROOT/usr/share/skype
18 # Download tarball
19 WEB_SITE="http://www.skype.com/"
20 wget ${WEB_SITE}go/getskype-linux-static
22 # Extract
23 TARBALL=$(ls getskype-linux-static skype*.tar.bz2 2> /dev/null || true)
24 tar xjf $TARBALL
25 VERSION=$(ls -d skype_static-*/)
26 VERSION=${VERSION%/}
27 VERSION=${VERSION#skype_static-}
28 cd skype_static-$VERSION
30 # Install files
31 mkdir -p skype-$VERSION/fs/usr/share/skype skype-$VERSION/fs/usr/bin
32 mkdir -p skype-$VERSION/fs/etc skype-$VERSION/fs/usr/share/applications
33 mkdir -p skype-$VERSION/fs/usr/share/pixmaps
34 mkdir -p skype-$VERSION/fs/usr/share/skype
35 mv LICENSE README skype-$VERSION/fs/usr/share/skype
36 mv skype skype-$VERSION/fs/usr/bin
37 mv icons skype-$VERSION/fs/usr/share/skype
38 mv avatars skype-$VERSION/fs/usr/share/skype
39 mv skype.conf skype-$VERSION/fs/etc
40 mv skype.desktop skype-$VERSION/fs/usr/share/applications
41 cd skype-$VERSION/fs/usr/share/pixmaps/
42 ln -s ../skype/icons/SkypeBlue_16x16.png skype.png ; cd -
45 # Create pseudo package
46 cat > skype-$VERSION/receipt <<EOT
47 PACKAGE="skype"
48 VERSION="$VERSION"
49 CATEGORY="non-free"
50 SHORT_DESC="Skype Internet Telephony."
51 WEB_SITE="$WEB_SITE"
52 DEPENDS="libsigc++ xorg-libXv xorg-libXss"
53 CONFIG_FILES="/etc/skype.conf"
54 EOT
56 # Pack
57 tazpkg pack skype-$VERSION
59 # Install pseudo package
60 tazpkg install skype-$VERSION.tazpkg --root=$ROOT
61 cd ..
63 # Clean
64 rm -rf skype_static-$VERSION* $TARBALL