wok rev 4984

fix: RAM for openoffice
author Rohit Joshi <jozee@slitaz.org>
date Thu Feb 25 10:30:21 2010 +0000 (2010-02-25)
parents 31ad867051f9
children 86a0f8cb33f7
files get-OpenOffice3/receipt get-OpenOffice3/stuff/get-OpenOffice3
line diff
     1.1 --- a/get-OpenOffice3/receipt	Thu Feb 25 09:59:02 2010 +0100
     1.2 +++ b/get-OpenOffice3/receipt	Thu Feb 25 10:30:21 2010 +0000
     1.3 @@ -6,6 +6,7 @@
     1.4  SHORT_DESC="Productivity suite"
     1.5  MAINTAINER="erjo@slitaz.org"
     1.6  WEB_SITE="http://www.openoffice.org"
     1.7 +TAGS="office word excel ppt openoffice"
     1.8  
     1.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.10  genpkg_rules()
     2.1 --- a/get-OpenOffice3/stuff/get-OpenOffice3	Thu Feb 25 09:59:02 2010 +0100
     2.2 +++ b/get-OpenOffice3/stuff/get-OpenOffice3	Thu Feb 25 10:30:21 2010 +0000
     2.3 @@ -93,7 +93,7 @@
     2.4  	test -d $SOURCE_DIR || mkdir -p $SOURCE_DIR
     2.5  	# Get the file.
     2.6  	wget -c $WGET_URL -O $SOURCE_DIR/$TARBALL
     2.7 -	status
     2.8 +	#status
     2.9  fi
    2.10  if [ ! -f $SOURCE_DIR/$TARBALL ]; then
    2.11  	rm -rf $SOURCE_DIR
    2.12 @@ -119,6 +119,10 @@
    2.13  done
    2.14  rpm2cpio desktop-integration/*freedesktop*.rpm | cpio -id >> $LOG 2>&1
    2.15  	
    2.16 +# extracted pkg can be removed: Save RAM
    2.17 +rm -f desktop-integration/*freedesktop*.rpm
    2.18 +rm -rf $SOURCE_DIR
    2.19 +
    2.20  # Make the package
    2.21  mkdir -p $PACKAGE-$VERSION/fs/usr/lib/openoffice  \
    2.22    $PACKAGE-$VERSION/fs/usr/share
    2.23 @@ -167,10 +171,12 @@
    2.24  # Pack
    2.25  tazpkg pack $PACKAGE-$VERSION
    2.26  
    2.27 +# Clean to save RAM memory
    2.28 +rm -rf $PACKAGE-$VERSION
    2.29 +
    2.30  # Install pseudo package
    2.31  tazpkg install $PACKAGE-$VERSION.tazpkg --root=$ROOT
    2.32  
    2.33  # Clean
    2.34 -rm -rf $SOURCE_DIR
    2.35  rm -rf $TEMP_DIR
    2.36 -rm -rf $PACKAGE-$VERSION
    2.37 +