wok diff get-skype/stuff/get-skype @ rev 300
Add: get-skype
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 29 22:36:24 2008 +0000 (2008-02-29) |
parents | |
children | c05ff7572e16 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/get-skype/stuff/get-skype Fri Feb 29 22:36:24 2008 +0000 1.3 @@ -0,0 +1,52 @@ 1.4 +#!/bin/sh -e 1.5 + 1.6 +# Download tarball 1.7 +WEB_SITE="http://www.skype.com/" 1.8 +wget ${WEB_SITE}go/getskype-linux-static 1.9 + 1.10 +# Extract 1.11 +TARBALL=$(ls getskype-linux-static skype*.tar.bz2 2> /dev/null || true) 1.12 +tar xjf $TARBALL 1.13 +VERSION=$(ls -d skype_static-*/) 1.14 +VERSION=${VERSION%/} 1.15 +VERSION=${VERSION#skype_static-} 1.16 +cd skype_static-$VERSION 1.17 + 1.18 +# Install files 1.19 +mkdir -p /usr/share/skype 1.20 +mv */ LICENSE /usr/share/skype 1.21 +mv skype /usr/bin 1.22 +mv skype.conf /etc 1.23 +mv skype.desktop /usr/share/applications 1.24 + 1.25 +# Create pseudo package 1.26 +mkdir -p fs/usr/share/skype 1.27 +mv README fs/usr/share/skype 1.28 +find fs | cpio -o -H newc | gzip -9 > fs.cpio.gz 1.29 +cat > files.list <<EOT 1.30 +/usr/bin/skype 1.31 +/etc/skype.conf 1.32 +/usr/share/applications/skype.desktop 1.33 +$(find /usr/share/skype) 1.34 +/usr/share/skype/README 1.35 +EOT 1.36 +cat > receipt <<EOT 1.37 +PACKAGE="skype" 1.38 +VERSION="$VERSION" 1.39 +CATEGORY="non-free" 1.40 +SHORT_DESC="Skype Internet Telephony." 1.41 +WEB_SITE="$WEB_SITE" 1.42 +DEPENDS="libsigc++" 1.43 +EOT 1.44 +cpio -o -H newc > skype-$VERSION.tazpkg <<EOT 1.45 +receipt 1.46 +files.list 1.47 +fs.cpio.gz 1.48 +EOT 1.49 + 1.50 +# Install pseudo package 1.51 +tazpkg install skype-$VERSION.tazpkg 1.52 +cd .. 1.53 + 1.54 +# Clean 1.55 +rm -rf skype_static-$VERSION* $TARBALL