get-scripts view bitcoin @ rev 34

Add sublime-text-3
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 23 08:59:52 2015 +0100 (2015-03-23)
parents 8b66f6a75a05
children 4e2636029105
line source
1 SHORT_DESC="New digital currency for instant payments to anyone, anywhere."
2 # end of get.list data
3 WEB_SITE="http://$PACKAGE.org/"
4 MAINTAINER="somebody@$PACKAGE.org"
5 DEPENDS="libQtGui libQtNetwork bzlib"
6 LICENSE="MIT"
8 # Download tarball
9 case "$PACKAGE" in
10 bitcoin)
11 WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE/en/download | sed \
12 '/linux.tar/!d;s/.*href="\([^"]*\).*/\1/;s|/download$||') ;;
13 litecoin)
14 WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE | sed \
15 '/linux.tar/!d;;s/.*href="\([^"]*\).*/\1/;q') ;;
16 esac
17 case "$WGET_URL" in
18 ftp*|http*);;
19 *) WGET_URL=$WEB_SITE$WGET_URL;;
20 esac
21 TARBALL="$(basename $WGET_URL)"
22 VERSION="$(echo $TARBALL | sed 's/.*coin-\(.*\)-linux.tar.*/\1/')"
23 wget --no-check-certificate -O $TARBALL "$WGET_URL"
25 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting."
27 mkdir -p $PACKAGE-$VERSION/fs/usr/bin
28 busybox tar xf $TARBALL
30 mv $PACKAGE-$VERSION-linux/bin/32/* $PACKAGE-$VERSION/fs/usr/bin
31 rm -rf $PACKAGE-$VERSION-linux
33 # extracted pkg can be removed: Save RAM
34 rm -f $TARBALL
36 cd $PACKAGE-$VERSION/fs
38 # Create menu
39 mkdir -p usr/share/applications
40 cat > usr/share/applications/$PACKAGE.desktop <<EOT
41 [Desktop Entry]
42 Version=1.0
43 Encoding=UTF-8
44 Name=$PACKAGE
45 Exec=/usr/bin/$PACKAGE-qt
46 Icon=stock_certificate.png
47 Terminal=false
48 Categories=Application
49 Comment=$SHORT_DESC
50 Type=Application
51 Categories=Office;
52 EOT
53 cd ../..
54 set +e