wok view get-skype/stuff/get-skype @ rev 3773
Add brscan
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 30 11:41:36 2009 +0200 (2009-07-30) |
parents | 456efbbe7c55 |
children | 32959e7975fc |
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 sounds skype-$VERSION/fs/usr/share/skype
40 mv skype.conf skype-$VERSION/fs/etc
41 mv skype.desktop skype-$VERSION/fs/usr/share/applications
42 cd skype-$VERSION/fs/usr/share/pixmaps/
43 ln -s ../skype/icons/SkypeBlue_16x16.png skype.png ; cd -
46 # Create pseudo package
47 cat > skype-$VERSION/receipt <<EOT
48 PACKAGE="skype"
49 VERSION="$VERSION"
50 CATEGORY="non-free"
51 SHORT_DESC="Skype Internet Telephony."
52 WEB_SITE="$WEB_SITE"
53 DEPENDS="libsigc++ xorg-libXv xorg-libXss"
54 CONFIG_FILES="/etc/skype.conf"
55 EOT
57 # Pack
58 tazpkg pack skype-$VERSION
60 # Install pseudo package
61 tazpkg install skype-$VERSION.tazpkg --root=$ROOT
62 cd ..
64 # Clean
65 rm -rf skype_static-$VERSION* $TARBALL