wok-next rev 5324

get-prince: remove binutils depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 22 20:37:31 2010 +0200 (2010-04-22)
parents 85b41f93b96d
children 3fb94ab57a3c
files get-prince/stuff/get-prince
line diff
     1.1 --- a/get-prince/stuff/get-prince	Fri Apr 23 00:46:08 2010 +0000
     1.2 +++ b/get-prince/stuff/get-prince	Thu Apr 22 20:37:31 2010 +0200
     1.3 @@ -34,27 +34,14 @@
     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 +mkdir $PACKAGE-$VERSION
    1.18  
    1.19 -ar x $DEBPKG data.tar.gz && tar xzf data.tar.gz
    1.20 +dpkg-deb -x $DEBPKG $PACKAGE-$VERSION/fs
    1.21 +rm -rf $PACKAGE-$VERSION/fs/usr/share
    1.22  
    1.23  # extracted pkg can be removed: Save RAM
    1.24  rm -rf $DEBPKG
    1.25  
    1.26 -mkdir -p $PACKAGE-$VERSION/fs/usr/
    1.27 -mv usr/bin usr/lib $PACKAGE-$VERSION/fs/usr/
    1.28 -
    1.29 -cd $TEMP_DIR
    1.30 -
    1.31  cat > $PACKAGE-$VERSION/receipt << EOT
    1.32  PACKAGE="$PACKAGE"
    1.33  VERSION="$VERSION"