wok rev 4981

Up:skype; fix url; improve receipt for tmpdir and RAM size
author Rohit Joshi <jozee@slitaz.org>
date Wed Feb 24 17:21:48 2010 +0000 (2010-02-24)
parents 112c7cb6ae86
children 4be316aa5572
files get-skype/receipt get-skype/stuff/get-skype
line diff
     1.1 --- a/get-skype/receipt	Wed Feb 24 15:26:00 2010 +0000
     1.2 +++ b/get-skype/receipt	Wed Feb 24 17:21:48 2010 +0000
     1.3 @@ -6,6 +6,7 @@
     1.4  SHORT_DESC="Get Skype Internet Telephony."
     1.5  MAINTAINER="pascal.bellard@slitaz.org"
     1.6  WEB_SITE="http://www.skype.com/"
     1.7 +TAGS="chat telephony"
     1.8  
     1.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.10  genpkg_rules()
     2.1 --- a/get-skype/stuff/get-skype	Wed Feb 24 15:26:00 2010 +0000
     2.2 +++ b/get-skype/stuff/get-skype	Wed Feb 24 17:21:48 2010 +0000
     2.3 @@ -1,6 +1,7 @@
     2.4  #!/bin/sh -e
     2.5  
     2.6  ROOT="$1"
     2.7 +PACKAGE="skype"
     2.8  
     2.9  if test $(id -u) != 0 ; then
    2.10  	echo -e "\nYou must be root to run `basename $0`."
    2.11 @@ -15,9 +16,13 @@
    2.12  fi
    2.13  [ -d $ROOT/usr/share/skype ] && rm -rf $ROOT/usr/share/skype
    2.14  
    2.15 +TMP_DIR=/tmp/$PACKAGE-$$
    2.16 +CUR_DIR=$(pwd)
    2.17 +mkdir -p $TMP_DIR && cd $TMP_DIR
    2.18 +
    2.19  # Download tarball
    2.20  WEB_SITE="http://www.skype.com/"
    2.21 -TARBALL="getskype-linux-static"
    2.22 +TARBALL="getskype-linux-beta-static"
    2.23  wget ${WEB_SITE}go/$TARBALL
    2.24  if [ ! -f $TARBALL ]; then
    2.25  	echo "Could not download $TARBALL. Exiting."
    2.26 @@ -30,6 +35,10 @@
    2.27  VERSION=$(ls -d skype_static-*/)
    2.28  VERSION=${VERSION%/}
    2.29  VERSION=${VERSION#skype_static-}
    2.30 +
    2.31 +# extracted pkg can be removed: Save RAM
    2.32 +rm -f $TARBALL
    2.33 +
    2.34  cd skype_static-$VERSION
    2.35  
    2.36  # Install files
    2.37 @@ -62,9 +71,12 @@
    2.38  # Pack
    2.39  tazpkg pack skype-$VERSION
    2.40  
    2.41 +# Clean to save RAM memory
    2.42 +rm -rf $PACKAGE-$VERSION
    2.43 +
    2.44  # Install pseudo package
    2.45  tazpkg install skype-$VERSION.tazpkg --root=$ROOT
    2.46 -cd ..
    2.47  
    2.48  # Clean
    2.49 -rm -rf skype_static-$VERSION* $TARBALL
    2.50 +cd $CUR_DIR
    2.51 +rm -rf $TMP_DIR