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