get-scripts annotate bitcoin @ rev 0
Add opera bitcoin litecoin
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 16 13:13:26 2014 +0000 (2014-02-16) |
parents | |
children | 38581c20c3f1 |
rev | line source |
---|---|
pascal@0 | 1 WEB_SITE="http://$PACKAGE.org/" |
pascal@0 | 2 SHORT_DESC="New digital currency for instant payments to anyone, anywhere." |
pascal@0 | 3 MAINTAINER="somebody@$PACKAGE.org" |
pascal@0 | 4 DEPENDS="libQtGui libQtNetwork bzlib" |
pascal@0 | 5 |
pascal@0 | 6 # Download tarball |
pascal@0 | 7 WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE/en/download | sed \ |
pascal@0 | 8 '/linux.tar/!d;s/.*href="\([^"]*\).*/\1/;s|/download$||') |
pascal@0 | 9 case "$WGET_URL" in |
pascal@0 | 10 ftp*|http*);; |
pascal@0 | 11 *) WGET_URL=$WEB_SITE$WGET_URL;; |
pascal@0 | 12 esac |
pascal@0 | 13 TARBALL="$(basename $WGET_URL)" |
pascal@0 | 14 VERSION="$(echo $TARBALL | sed 's/.*coin-\(.*\)-linux.tar.*/\1/')" |
pascal@0 | 15 wget --no-check-certificate -O $TARBALL "$WGET_URL" |
pascal@0 | 16 |
pascal@0 | 17 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting." |
pascal@0 | 18 |
pascal@0 | 19 mkdir -p $PACKAGE-$VERSION/fs/usr/bin |
pascal@0 | 20 tar xzf $TARBALL |
pascal@0 | 21 |
pascal@0 | 22 mv $PACKAGE-$VERSION-linux/bin/32/* $PACKAGE-$VERSION/fs/usr/bin |
pascal@0 | 23 rm -rf $PACKAGE-$VERSION-linux |
pascal@0 | 24 |
pascal@0 | 25 # extracted pkg can be removed: Save RAM |
pascal@0 | 26 rm -f $TARBALL |
pascal@0 | 27 |
pascal@0 | 28 cd $PACKAGE-$VERSION/fs |
pascal@0 | 29 |
pascal@0 | 30 # Create menu |
pascal@0 | 31 mkdir -p usr/share/applications |
pascal@0 | 32 cat > usr/share/applications/$PACKAGE.desktop <<EOT |
pascal@0 | 33 [Desktop Entry] |
pascal@0 | 34 Version=1.0 |
pascal@0 | 35 Encoding=UTF-8 |
pascal@0 | 36 Name=$PACKAGE |
pascal@0 | 37 Exec=/usr/bin/$PACKAGE-qt |
pascal@0 | 38 Icon=stock_certificate.png |
pascal@0 | 39 Terminal=false |
pascal@0 | 40 Categories=Application |
pascal@0 | 41 Comment=$SHORT_DESC |
pascal@0 | 42 Type=Application |
pascal@0 | 43 Categories=Office; |
pascal@0 | 44 EOT |
pascal@0 | 45 cd ../.. |