wok-stable rev 5328
get-google-chrome: remove binutils depends
author | Liu Peng <rocky@slitaz.org> |
---|---|
date | Fri Apr 23 20:39:09 2010 +0000 (2010-04-23) |
parents | 4066db26bddc |
children | e7902ce7d2e3 |
files | get-google-chrome/stuff/get-google-chrome |
line diff
1.1 --- a/get-google-chrome/stuff/get-google-chrome Fri Apr 23 20:35:58 2010 +0000 1.2 +++ b/get-google-chrome/stuff/get-google-chrome Fri Apr 23 20:39:09 2010 +0000 1.3 @@ -44,32 +44,18 @@ 1.4 exit 1 1.5 fi 1.6 1.7 -# Install binutils(ar) pkg 1.8 -if [ ! -d /var/lib/tazpkg/installed/binutils ]; then 1.9 - tazpkg get-install binutils 1.10 -fi 1.11 -if [ ! -f /usr/bin/ar ]; then 1.12 - cd $CUR_DIR 1.13 - rm -rf $TEMP_DIR 1.14 - echo "Could not extract $DEBPKG. Exiting." 1.15 - exit 1 1.16 -fi 1.17 +dpkg-deb -e $DEBPKG . 1.18 +VERSION=`sed -n 's/Version:\ *//p' control` 1.19 1.20 -ar x $DEBPKG control.tar.gz data.tar.lzma && lzma d data.tar.lzma -so | tar xf - 1.21 -tar xzf control.tar.gz ./control 1.22 -VERSION=`sed -n 's/Version:\ *//p' control` 1.23 +mkdir $PACKAGE-$VERSION 1.24 + 1.25 +dpkg-deb -x $DEBPKG $PACKAGE-$VERSION/fs 1.26 +rm -rf $PACKAGE-$VERSION/fs/usr/share 1.27 +rm -rf $PACKAGE-$VERSION/fs/etc 1.28 1.29 # extracted pkg can be removed: Save RAM 1.30 rm -rf $DEBPKG 1.31 1.32 -mkdir -p $PACKAGE-$VERSION/fs 1.33 -mv usr opt $PACKAGE-$VERSION/fs 1.34 - 1.35 -# delete man page 1.36 -rm -rf $PACKAGE-$VERSION/fs/usr/share/man/ 1.37 - 1.38 -cd $TEMP_DIR 1.39 - 1.40 cat > $PACKAGE-$VERSION/receipt << EOT 1.41 PACKAGE="$PACKAGE" 1.42 VERSION="$VERSION"