Navigation

Project: wok

Clone project: hg clone http://hg.slitaz.org/wok

  • Download tarball:
  • bz2
  • gz

Search

wok changeset 14504:b8f782e7c45e

get-bitcoin: get last version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 12 08:46:16 2013 +0200 (14 months ago ago)
parents b81c74d68a28
children 131cb904fa0c
files get-bitcoin/receipt get-bitcoin/stuff/get-bitcoin
line diff
     1.1 --- a/get-bitcoin/receipt	Sat May 11 23:41:18 2013 +0200
     1.2 +++ b/get-bitcoin/receipt	Sun May 12 08:46:16 2013 +0200
     1.3 @@ -11,6 +11,6 @@
     1.4  genpkg_rules()
     1.5  {
     1.6  	mkdir -p $fs/usr/bin
     1.7 -	cp stuff/get-bitcoin $fs/usr/bin
     1.8 +	cp $stuff/get-bitcoin $fs/usr/bin
     1.9  }
    1.10  
     2.1 --- a/get-bitcoin/stuff/get-bitcoin	Sat May 11 23:41:18 2013 +0200
     2.2 +++ b/get-bitcoin/stuff/get-bitcoin	Sun May 12 08:46:16 2013 +0200
     2.3 @@ -1,15 +1,11 @@
     2.4  #!/bin/sh -e
     2.5  
     2.6 -PACKAGE="bitcoin"
     2.7 -VERSION="0.7.2"
     2.8 +PACKAGE="$(basename $0 | sed 's/get-//')"
     2.9  CATEGORY="misc"
    2.10 -WEB_SITE="http://bitcoin.org/"
    2.11 +WEB_SITE="http://$PACKAGE.org/"
    2.12  SHORT_DESC="New digital currency for instant payments to anyone, anywhere."
    2.13 -MAINTAINER="somebody@bitcoin.org"
    2.14 +MAINTAINER="somebody@$PACKAGE.org"
    2.15  DEPENDS="libQtGui bzlib"
    2.16 -TARBALL="$PACKAGE-$VERSION-linux.tar.gz"
    2.17 -SF_MIRROR="http://netcologne.dl.sourceforge.net/project"
    2.18 -URL="$SF_MIRROR/$PACKAGE/Bitcoin/$PACKAGE-$VERSION/$TARBALL"
    2.19  
    2.20  ROOT="$1"
    2.21  [ -d "$ROOT" ] || ROOT=""
    2.22 @@ -31,7 +27,10 @@
    2.23  mkdir -p $TMP_DIR && cd $TMP_DIR
    2.24  
    2.25  # Download tarball
    2.26 +URL=$(wget -O - $WEB_SITE/en/download | sed \
    2.27 +      '/linux.tar/!d;s/.*href="\([^"]*\).*/\1/;s|/download$||')
    2.28  FILE="$(basename $URL)"
    2.29 +VERSION="$(echo $FILE | sed 's/.*coin-\(.*\)-linux.tar.*/\1/')"
    2.30  wget -O $FILE "$URL"
    2.31  
    2.32  if [ ! -f $FILE ]; then
    2.33 @@ -59,7 +58,7 @@
    2.34  Version=1.0
    2.35  Encoding=UTF-8
    2.36  Name=$PACKAGE
    2.37 -Exec=/usr/bin/bitcoin-qt
    2.38 +Exec=/usr/bin/$PACKAGE-qt
    2.39  Icon=stock_certificate.png
    2.40  Terminal=false
    2.41  Categories=Application