wok-next rev 4989

fix: RAM for get-google-earth; Add TAGS
author Rohit Joshi <jozee@slitaz.org>
date Thu Feb 25 11:17:18 2010 +0000 (2010-02-25)
parents 2a50b17a96b8
children 6a80bcb8368d
files get-google-earth/receipt get-google-earth/stuff/get-google-earth
line diff
     1.1 --- a/get-google-earth/receipt	Thu Feb 25 11:12:47 2010 +0000
     1.2 +++ b/get-google-earth/receipt	Thu Feb 25 11:17:18 2010 +0000
     1.3 @@ -6,6 +6,7 @@
     1.4  SHORT_DESC="Get Google Earth."
     1.5  MAINTAINER="pascal.bellard@slitaz.org"
     1.6  WEB_SITE="http://earth.google.com/"
     1.7 +TAGS="map visualization"
     1.8  
     1.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.10  genpkg_rules()
     2.1 --- a/get-google-earth/stuff/get-google-earth	Thu Feb 25 11:12:47 2010 +0000
     2.2 +++ b/get-google-earth/stuff/get-google-earth	Thu Feb 25 11:17:18 2010 +0000
     2.3 @@ -2,6 +2,7 @@
     2.4  
     2.5  DEPENDS="mesa"
     2.6  ROOT="$1"
     2.7 +PACKAGE="google-earth"
     2.8  
     2.9  if test $(id -u) != 0 ; then
    2.10  	echo -e "\nYou must be root to run `basename $0`."
    2.11 @@ -41,6 +42,9 @@
    2.12  # Extract
    2.13  ./GoogleEarthLinux.bin
    2.14  
    2.15 +# extracted pkg can be removed: Save RAM
    2.16 +rm -rf GoogleEarthLinux.bin
    2.17 +
    2.18  # Create pseudo package
    2.19  while read file; do
    2.20  	dest=google-earth-$VERSION/fs$(dirname $file)
    2.21 @@ -62,7 +66,10 @@
    2.22  EOT
    2.23  
    2.24  # Pack
    2.25 -tazpkg pack google-earth-$VERSION
    2.26 +tazpkg pack $PACKAGE-$VERSION
    2.27 +
    2.28 +# Clean to save RAM memory
    2.29 +rm -rf $PACKAGE-$VERSION
    2.30  
    2.31  # Install pseudo package
    2.32  tazpkg install google-earth-$VERSION.tazpkg --root=$ROOT