get-scripts view litecoin @ 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
line source
1 set -x
2 WEB_SITE="http://$PACKAGE.org/"
3 SHORT_DESC="New digital currency for instant payments to anyone, anywhere."
4 MAINTAINER="somebody@$PACKAGE.org"
5 DEPENDS="libQtGui libQtNetwork bzlib"
7 # Download tarball
8 WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE | sed '/linux.tar/!d;;s/.*href="\([^"]*\).*/\1/;q')
9 case "$WGET_URL" in
10 ftp*|http*);;
11 *) WGET_URL=$WEB_SITE$WGET_URL;;
12 esac
13 TARBALL="$(basename $WGET_URL)"
14 VERSION="$(echo $TARBALL | sed 's/.*coin-\(.*\)-linux.tar.*/\1/')"
15 wget --no-check-certificate -O $TARBALL "$WGET_URL"
17 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting."
19 mkdir -p $PACKAGE-$VERSION/fs/usr/bin
20 busybox tar xf $TARBALL
22 mv $PACKAGE-$VERSION-linux/bin/32/* $PACKAGE-$VERSION/fs/usr/bin
23 rm -rf $PACKAGE-$VERSION-linux
25 # extracted pkg can be removed: Save RAM
26 rm -f $TARBALL
28 cd $PACKAGE-$VERSION/fs
30 # Create menu
31 mkdir -p usr/share/applications
32 cat > usr/share/applications/$PACKAGE.desktop <<EOT
33 [Desktop Entry]
34 Version=1.0
35 Encoding=UTF-8
36 Name=$PACKAGE
37 Exec=/usr/bin/$PACKAGE-qt
38 Icon=stock_certificate.png
39 Terminal=false
40 Categories=Application
41 Comment=$SHORT_DESC
42 Type=Application
43 Categories=Office;
44 EOT
45 cd ../..