get-scripts diff bitcoin @ rev 36

bitcoin: update
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 29 16:35:57 2015 +0200 (2015-04-29)
parents 6ca05e6839e1
children 9236e88ec240
line diff
     1.1 --- a/bitcoin	Mon Mar 23 08:59:52 2015 +0100
     1.2 +++ b/bitcoin	Wed Apr 29 16:35:57 2015 +0200
     1.3 @@ -9,7 +9,7 @@
     1.4  case "$PACKAGE" in
     1.5  bitcoin)
     1.6  	WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE/en/download | sed \
     1.7 -	      '/linux.tar/!d;s/.*href="\([^"]*\).*/\1/;s|/download$||') ;;
     1.8 +	      '/linux32.tar/!d;s/.*href="\([^"]*\).*/\1/;s|/download$||') ;;
     1.9  litecoin)
    1.10  	WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE | sed \
    1.11  	      '/linux.tar/!d;;s/.*href="\([^"]*\).*/\1/;q') ;;
    1.12 @@ -19,7 +19,7 @@
    1.13  *) WGET_URL=$WEB_SITE$WGET_URL;;
    1.14  esac
    1.15  TARBALL="$(basename $WGET_URL)"
    1.16 -VERSION="$(echo $TARBALL | sed 's/.*coin-\(.*\)-linux.tar.*/\1/')"
    1.17 +VERSION="$(echo $TARBALL | sed 's/.*coin-\(.*\)-linux.*tar.*/\1/')"
    1.18  wget --no-check-certificate -O $TARBALL "$WGET_URL"
    1.19  
    1.20  [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting."
    1.21 @@ -27,6 +27,7 @@
    1.22  mkdir -p $PACKAGE-$VERSION/fs/usr/bin
    1.23  busybox tar xf $TARBALL
    1.24  
    1.25 +[ -d $PACKAGE-$VERSION-linux/bin/32 ] &&
    1.26  mv $PACKAGE-$VERSION-linux/bin/32/* $PACKAGE-$VERSION/fs/usr/bin
    1.27  rm -rf $PACKAGE-$VERSION-linux
    1.28