# HG changeset patch # User Rohit Joshi # Date 1267032108 0 # Node ID 596332a90ae8d2cd18798ea87081016c0f2c9aa8 # Parent 112c7cb6ae86615c7a0610b3b48d924ce3f31693 Up:skype; fix url; improve receipt for tmpdir and RAM size diff -r 112c7cb6ae86 -r 596332a90ae8 get-skype/receipt --- a/get-skype/receipt Wed Feb 24 15:26:00 2010 +0000 +++ b/get-skype/receipt Wed Feb 24 17:21:48 2010 +0000 @@ -6,6 +6,7 @@ SHORT_DESC="Get Skype Internet Telephony." MAINTAINER="pascal.bellard@slitaz.org" WEB_SITE="http://www.skype.com/" +TAGS="chat telephony" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() diff -r 112c7cb6ae86 -r 596332a90ae8 get-skype/stuff/get-skype --- a/get-skype/stuff/get-skype Wed Feb 24 15:26:00 2010 +0000 +++ b/get-skype/stuff/get-skype Wed Feb 24 17:21:48 2010 +0000 @@ -1,6 +1,7 @@ #!/bin/sh -e ROOT="$1" +PACKAGE="skype" if test $(id -u) != 0 ; then echo -e "\nYou must be root to run `basename $0`." @@ -15,9 +16,13 @@ fi [ -d $ROOT/usr/share/skype ] && rm -rf $ROOT/usr/share/skype +TMP_DIR=/tmp/$PACKAGE-$$ +CUR_DIR=$(pwd) +mkdir -p $TMP_DIR && cd $TMP_DIR + # Download tarball WEB_SITE="http://www.skype.com/" -TARBALL="getskype-linux-static" +TARBALL="getskype-linux-beta-static" wget ${WEB_SITE}go/$TARBALL if [ ! -f $TARBALL ]; then echo "Could not download $TARBALL. Exiting." @@ -30,6 +35,10 @@ VERSION=$(ls -d skype_static-*/) VERSION=${VERSION%/} VERSION=${VERSION#skype_static-} + +# extracted pkg can be removed: Save RAM +rm -f $TARBALL + cd skype_static-$VERSION # Install files @@ -62,9 +71,12 @@ # Pack tazpkg pack skype-$VERSION +# Clean to save RAM memory +rm -rf $PACKAGE-$VERSION + # Install pseudo package tazpkg install skype-$VERSION.tazpkg --root=$ROOT -cd .. # Clean -rm -rf skype_static-$VERSION* $TARBALL +cd $CUR_DIR +rm -rf $TMP_DIR