wok annotate get-skype/stuff/get-skype @ rev 831
Add pixman (new dep for cairo)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 18 13:27:44 2008 +0200 (2008-05-18) |
parents | e64526022ed7 |
children | 49490d76a557 |
rev | line source |
---|---|
pascal@300 | 1 #!/bin/sh -e |
pascal@300 | 2 |
pascal@417 | 3 if test $(id -u) != 0 ; then |
pascal@417 | 4 echo -e "\nYou must be root to run `basename $0`." |
pascal@417 | 5 echo -e "Please type 'su' and root password to become super-user.\n" |
pascal@417 | 6 exit 0 |
pascal@417 | 7 fi |
pascal@417 | 8 |
pascal@446 | 9 if [ -d /var/lib/tazpkg/installed/skype ]; then |
pascal@446 | 10 tazpkg remove skype |
pascal@446 | 11 [ -d /var/lib/tazpkg/installed/skype ] && exit 1 |
pascal@446 | 12 fi |
pascal@446 | 13 [ -d /usr/share/skype ] && rm -rf /usr/share/skype |
pascal@446 | 14 |
pascal@300 | 15 # Download tarball |
pascal@300 | 16 WEB_SITE="http://www.skype.com/" |
pascal@300 | 17 wget ${WEB_SITE}go/getskype-linux-static |
pascal@300 | 18 |
pascal@300 | 19 # Extract |
pascal@300 | 20 TARBALL=$(ls getskype-linux-static skype*.tar.bz2 2> /dev/null || true) |
pascal@300 | 21 tar xjf $TARBALL |
pascal@300 | 22 VERSION=$(ls -d skype_static-*/) |
pascal@300 | 23 VERSION=${VERSION%/} |
pascal@300 | 24 VERSION=${VERSION#skype_static-} |
pascal@300 | 25 cd skype_static-$VERSION |
pascal@300 | 26 |
pascal@300 | 27 # Install files |
pascal@300 | 28 mkdir -p /usr/share/skype |
pascal@446 | 29 mv */ LICENSE README /usr/share/skype |
pascal@300 | 30 mv skype /usr/bin |
pascal@300 | 31 mv skype.conf /etc |
pascal@300 | 32 mv skype.desktop /usr/share/applications |
pascal@417 | 33 ln /usr/share/skype/icons/*16.png /usr/share/pixmaps/skype.png |
pascal@300 | 34 |
pascal@300 | 35 # Create pseudo package |
pascal@446 | 36 mkdir -p fs/usr/bin |
pascal@446 | 37 cp /usr/bin/get-skype fs/usr/bin |
pascal@300 | 38 find fs | cpio -o -H newc | gzip -9 > fs.cpio.gz |
pascal@300 | 39 cat > files.list <<EOT |
pascal@300 | 40 /usr/bin/skype |
pascal@300 | 41 /etc/skype.conf |
pascal@300 | 42 /usr/share/applications/skype.desktop |
pascal@419 | 43 /usr/share/pixmaps/skype.png |
pascal@300 | 44 $(find /usr/share/skype) |
pascal@300 | 45 EOT |
pascal@300 | 46 cat > receipt <<EOT |
pascal@300 | 47 PACKAGE="skype" |
pascal@300 | 48 VERSION="$VERSION" |
pascal@300 | 49 CATEGORY="non-free" |
pascal@300 | 50 SHORT_DESC="Skype Internet Telephony." |
pascal@300 | 51 WEB_SITE="$WEB_SITE" |
pascal@436 | 52 DEPENDS="libsigc++ xorg-libXv xorg-libXss" |
pascal@300 | 53 EOT |
pascal@300 | 54 cpio -o -H newc > skype-$VERSION.tazpkg <<EOT |
pascal@300 | 55 receipt |
pascal@300 | 56 files.list |
pascal@300 | 57 fs.cpio.gz |
pascal@300 | 58 EOT |
pascal@300 | 59 |
pascal@300 | 60 # Install pseudo package |
pascal@300 | 61 tazpkg install skype-$VERSION.tazpkg |
pascal@300 | 62 cd .. |
pascal@300 | 63 |
pascal@300 | 64 # Clean |
pascal@300 | 65 rm -rf skype_static-$VERSION* $TARBALL |